Sets whether a language is open for work.
HTTP
PATCH /projects/{projectId}/languages/{code}Access: Session token only. API keys get 403 with insufficient_scope.
Role: Project manager (organisation owners and admins are managers of every project).
Path parameters #
| Parameter | Description |
|---|---|
projectId | The id of the project. |
code | The language code, such as de-de. Not case sensitive. |
Request body #
JSON.
| Field | Type | Required | Description |
|---|---|---|---|
status | string | yes | active, review or inactive. |
JSON
{ "status": "active" }Response 200 #
The languages, as in List languages.
Errors #
| Status | error | When |
|---|---|---|
| 401 | unauthenticated | The token is missing or not valid. |
| 404 | not_found | The project does not exist in your organisation, you have no access to it, or projectId is not a UUID. |
| 403 | forbidden | You are a member of the project, but not a manager. |
| 404 | not_found | The project or the language does not exist, or you have no access. |
| 422 | invalid_request | status is not one of the three values. |
| 409 | last_language | status is inactive and this is the last language of the project that is not inactive. Add another language and set it to Active first. |
| 429 | rate_limited | Too many requests, see Rate limiting. |
See Errors for the error format.