Removes the translation for a given language from an entry. The language to clear is sent in the JSON body (not as a path segment).
DELETE /api/v1/entries/{id}/translations
| |
|---|
| Auth | Required |
| Query parameters | None |
| Name | Type | Description |
|---|
id | string | Entry id |
Authorization: Bearer <your-api-key>
Content-Type: application/json
| Field | Type | Required | Description |
|---|
language | string | yes | Locale whose translation should be removed |
curl -sS -X DELETE https://collingo.app/api/v1/entries/clentry0123456789abcdefg/translations \
-H "Authorization: Bearer <your-api-key>" \
-H "Content-Type: application/json" \
-d '{"language": "de-DE"}' \
-o /dev/null -w "%{http_code}\n"
Empty body. The translation for that language has been removed.
| Status | When |
|---|
400 | Validation failed |
401 | Missing or invalid API key (ERR_UNAUTHORIZED) |
403 | Insufficient role (ERR_FORBIDDEN) |
404 | Entry not found |
500 | Database or internal error |