Set a translation
What it does
Section titled “What it does”Creates or updates the translation for one language on an entry (upsert). The language must be one of the project’s translation languages.
Request
Section titled “Request”PUT /api/v1/entries/{id}/translations
| Auth | Required |
| Query parameters | None |
Path parameters
Section titled “Path parameters”| Name | Type | Description |
|---|---|---|
id | string | Entry id |
Headers
Section titled “Headers”Authorization: Bearer <your-api-key>Content-Type: application/json{ "language": "de-DE", "translation": "Impressum"}| Field | Type | Required | Description |
|---|---|---|---|
language | string | yes | Target locale code |
translation | string | yes | Translated text |
Example
Section titled “Example”curl -sS -X PUT https://collingo.app/api/v1/entries/clentry0123456789abcdefg/translations \ -H "Authorization: Bearer <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "language": "de-DE", "translation": "Impressum" }'Response
Section titled “Response”200 OK
Section titled “200 OK”{ "id": "cltr0123456789abcdefghij", "language": "de-DE", "translation": "Impressum", "translatorId": "cluser0123456789abcdefgh", "createdAt": "2026-07-01T13:00:00Z"}Errors
Section titled “Errors”| Status | When |
|---|---|
400 | Validation failed or invalid language |
401 | Missing or invalid API key (ERR_UNAUTHORIZED) |
403 | Insufficient role (ERR_FORBIDDEN) |
404 | Entry not found |
500 | Database or internal error |