Skip to content

Designed
Link questionnaire to specification

Request

Attaches an existing questionnaire instance to this specification. Chapter placement is derived server-side from the questionnaire's template. Idempotent for an already-linked instance. At creation time, prefer the questionnaires reference array of the specification create.

Security
oauth2(Required scopes: t1_api)
Path
specificationIdstring, (uuid)required

The unique identifier of the specification

Bodyapplication/jsonrequired
questionnaireIdstring, (uuid)required
curl -i -X POST \
  'https://apis.traceone.com/spec/v2/food/specifications/{specificationId}/questionnaires/link' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "questionnaireId": "9abce9e8-8cd1-466c-8c53-3b67c390ab33"
  }'

Responses

The questionnaire was linked

Response
No content