Reviews
Create a Review
POST
https://localize.cirro.io/api/v2/reviewsParameters
| Parameter | Type | Note | |
|---|---|---|---|
review[content] | required | string | JSON string of the hash you want to review |
review[language] | required | string | iso code of the language of the content |
review[formality_level] | enum | Default: default. Available options: default, more, less, prefer_more, prefer_less | |
review[context_id] | number | The id of an existing context |
Description
Returns the Review object if creation succeeded. Returns an error if creation failed.
Example
1cat << EOF > payload.json
2{
3 "review": {
4 "content": "{\"key\":\"Hello World\"}",
5 "language": "en"
6 }
7}
8EOF
9
10curl https://localize.cirro.io/api/v2/reviews \
11 -H "Authorization: Bearer <ACCESS_TOKEN>" \
12 -H 'Content-Type: application/json' \
13 -d @payload.json