Update a project
What it does
Section titled “What it does”Updates project fields. Omit a field to leave it unchanged. At least one field must be provided.
Request
Section titled “Request”PATCH /api/v1/projects/{id}
| Auth | Required |
| Query parameters | None |
Path parameters
Section titled “Path parameters”| Name | Type | Description |
|---|---|---|
id | string | Project id |
Headers
Section titled “Headers”Authorization: Bearer <your-api-key>Content-Type: application/jsonAll fields optional; send only what you want to change:
{ "name": "My mobile app (renamed)", "baseLanguage": "en-US", "translationLanguages": ["de-DE", "es-ES"]}| Field | Type | Description |
|---|---|---|
name | string | null | New name (3–32 characters) |
baseLanguage | string | null | New base locale |
translationLanguages | string[] | null | Full replacement list of target locales |
Example
Section titled “Example”curl -sS -X PATCH https://collingo.app/api/v1/projects/clproj0123456789abcdefgh \ -H "Authorization: Bearer <your-api-key>" \ -H "Content-Type: application/json" \ -d '{"name": "My mobile app (renamed)"}'Response
Section titled “Response”200 OK
Section titled “200 OK”Returns the updated Project object (same shape as Get a project).
Errors
Section titled “Errors”| Status | When |
|---|---|
400 | Validation failed or nothing to update |
401 | Missing or invalid API key (ERR_UNAUTHORIZED) |
403 | Insufficient role (ERR_FORBIDDEN) |
404 | Project not found (ERR_PROJECT_NOT_FOUND) |
500 | Database or internal error |