Passer au contenu

Designed
Link testing chapter

Requête

Same behaviour as FoodSpecifications_LinkTestingChapter. Attaches an existing library testing chapter of the PACKAGING type (created with LibraryChapters_CreateTesting, templateType packaging) to this specification, replacing the currently linked one, if any. Also the way a specification adopts a new version of its chapter. Linking the chapter already linked changes nothing (204).

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

The unique identifier of the specification

Corpsapplication/jsonobligatoire
chapterIdstring, (uuid)obligatoire
curl -i -X POST \
  'https://apis.traceone.com/spec/v2/packaging/specifications/{specificationId}/testing-chapter/link' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "chapterId": "2a48aff7-27e7-4ab6-9471-1ee9c5632811"
  }'

Réponses

The chapter was linked

Réponse
Aucun contenu