Passer au contenu

Designed
Share a packaging system

Requête

Shares the system with the companies listed, together with its components. Additive: companies it is already shared with stay. Sharing with a company it is already shared with changes nothing (204). Owner company only.

Sécurité
oauth2(Portées requises: t1_api)
Chemin
packagingSystemIdstring, (uuid)obligatoire
Corpsapplication/jsonobligatoire
companyIdsArray of strings, (uuid), non-emptyobligatoire

Companies to share with (from the CUMD public API).

curl -i -X POST \
  'https://apis.traceone.com/spec/v2/library/packaging-systems/{packagingSystemId}/share' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "companyIds": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
  }'

Réponses

The system is shared with the companies listed

Réponse
Aucun contenu