Grants access to this additive.
Always grants access to the company that owns the additive, taken from the additive itself, never from the caller. An additive created through this API is visible to nobody until it is shared, so this is how its owner first sees it.
List companyIds to grant access to other companies as well, typically a retailer. No body and an empty list both grant the owner only.
Idempotent: a company that already has access is left as it is.
Security
oauth2(Required scopes: t1_api)
- Productionhttps://apis.traceone.com/spec/v2/library/materials/additives/{materialId}/share
curl -i -X POST \
'https://apis.traceone.com/spec/v2/library/materials/additives/{materialId}/share' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}'