Passer au contenu

Designed
Replace a packaging system

Requête

Full replace of the system's active version: name and components (quantities, main component, recyclability, links). Owner company only. Every packaging specification that links the system sees the change. A system locked by a specification in signature is refused; it changes through a new version (LibraryPackagingSystems_NewVersion).

Sécurité
oauth2(Portées requises: t1_api)
Chemin
packagingSystemIdstring, (uuid)obligatoire
Corpsapplication/jsonobligatoire
namestringobligatoire

Unique among your company's packaging systems.

componentsArray of objects, non-empty(PackagingSystemComponentWrite)obligatoire
curl -i -X PUT \
  'https://apis.traceone.com/spec/v2/library/packaging-systems/{packagingSystemId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "components": [
      {
        "componentId": "616ccd92-d666-4180-8349-8d125b269fac",
        "componentQuantity": 1,
        "isMainComponent": true,
        "componentRecyclabilityId": "68e74424-17e7-4e0c-b8a6-3b925d9394c8",
        "linkedComponentIds": [
          "497f6eca-6276-4993-bfeb-53cbbbba6f08"
        ]
      }
    ]
  }'

Réponses

The system was replaced. Read it back from the GET.

Réponse
Aucun contenu