Passer au contenu

Limited
Write questionnaire answers

Requête

Full replace of the answers document of a questionnaire linked to this specification. Questionnaires are attached when the specification is created; list them, with their question codes, through GET .../food/specifications/{specificationId}/questionnaires.

After the write, the questionnaires of the same chapter return to "not validated", and automatic labelling claims are recomputed from the answers: claims the answers produce are added, automatically added claims the answers no longer produce are removed, and claims added by a user are kept.

A locked questionnaire refuses the write.

Sécurité
oauth2(Portées requises: t1_api)
Chemin
specificationIdstring, (uuid)obligatoire

The unique identifier of the specification

questionnaireIdstring, (uuid)obligatoire

The unique identifier of the questionnaire instance

Corpsapplication/jsonobligatoire
<property name>anypropriété supplémentaire
curl -i -X PUT \
  'https://apis.traceone.com/spec/v2/food/specifications/{specificationId}/questionnaires/{questionnaireId}/answers' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Réponses

The answers were written

Réponse
Aucun contenu