Manual
CLI
API
Log in Get started free

Update a project

Changes the name, description, icon or colour of a project. Send only what changes.

Changes the name, description, icon or colour of a project. Send only what changes.

HTTP
PATCH /projects/{projectId}

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 #

ParameterDescription
projectIdThe id of the project.

Request body #

JSON.

FieldTypeRequiredDescription
namestringnoAt most 80 characters. Cannot be empty.
descriptionstringnoAt most 400 characters. May be empty.
iconstringnoAt most 16 characters.
accentstringnoA colour in the form #rrggbb.
typestring or nullnogame, mobile, web, ecommerce or other. null removes the type.
JSON
{ "name": "Web shop", "accent": "#06b6d4" }

Response 200 #

The project after the change.

JSON
{
  "id": "0197a3c6-4d53-7a44-87fb-9b3e5c0a2d64",
  "name": "Shop",
  "description": "The web shop",
  "icon": null,
  "accent": "#7c3aed",
  "type": "web",
  "status": "active",
  "sourceLanguage": "en-gb",
  "targetLanguages": ["de-de", "fr-fr"],
  "progress": 42,
  "keys": 318,
  "members": [{ "initials": "AL", "from": "#06b6d4", "to": "#7c3aed" }],
  "extraMembers": 0,
  "ageMinutes": 15
}

Response fields #

FieldTypeDescription
idstringThe id of the project.
namestringThe name.
descriptionstringThe description.
iconstring or nullAn emoji. The app shows an abbreviation of the name instead.
accentstringA colour such as #7c3aed.
typestring or nullWhat the project is translated for: game, mobile, web, ecommerce or other. null when none was given.
statusstringactive or archived.
sourceLanguagestringThe language code of the source text.
targetLanguageslist of stringThe language codes of every language of the project, whatever its status.
progressintegerPercent of keys on the protected branch that are published, across all languages.
keysintegerNumber of keys on the protected branch.
memberslist of objectUp to 3 people with access, as initials, from and to for an avatar.
extraMembersintegerHow many more people have access.
ageMinutesintegerMinutes since the project last changed.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe project does not exist in your organisation, you have no access to it, or projectId is not a UUID.
403forbiddenYou are a member of the project, but not a manager.
422invalid_requestA value is empty, too long, accent is not a colour like #06b6d4, or type is not one of the listed values.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.