Contexts
Attach a Context
DeprecatedThis endpoint is deprecated. Pass
context_id when you create a translation instead.POST
https://localize.cirro.io/api/v2/contexts/:id/attachParameters
| Parameter | Type | Note | |
|---|---|---|---|
translation_id | required | number | The uid of the translation to attach the context to |
Description
Returns the Translation object with the context if the request was successful. Returns an error if the context or the translation does not exist.
Example
1curl https://localize.cirro.io/api/v2/contexts/ID/attach \
2 -H "Authorization: jwt <JWT_ACCESS_TOKEN>" \
3 -H 'Content-Type: application/json' \
4 -d '{ "translation_id": 123 }'