Theme

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/attach

Parameters

ParameterTypeNote
translation_idrequirednumberThe 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 }'
Previous
Delete a Context