Theme

Contexts

Create a Context

POST https://localize.cirro.io/api/v2/contexts

Parameters

ParameterTypeNote
context[description]stringThe description of the context. HTML is supported.
context[attachments]requiredarrayList of remote attachments. Send an empty array [] if you have no attachments.
context[attachments][][remote_path_url]stringThe URL of the file to attach.
The file is downloaded and attached in the background.

Description

Returns the Context object if creation succeeded. Returns an error if creation failed, e.g. The remote path URL is invalid if an attachment URL is not valid.

Example

1cat << EOF > payload.json
2{
3  "context": {
4    "description": "The app is a banking app, keep the tone formal.",
5    "attachments": [
6      { "remote_path_url": "https://example.com/screenshot.png" }
7    ]
8  }
9}
10EOF
11
12curl https://localize.cirro.io/api/v2/contexts \
13  -H "Authorization: jwt <JWT_ACCESS_TOKEN>" \
14  -H 'Content-Type: application/json' \
15  -d @payload.json
Previous
About Contexts