/v1/workspaces/{workspace_id}/projects/{project_id}AuthUpdate a project
Rename, describe or reorder the project. Only the fields you send change. Needs `flags.project.manage`.
Path parameters
project_id*string · uuidId of the project.
workspace_id*string · uuidId of the workspace.
Request body
namestringDisplay name, 1-100 characters, unique in the workspace.
Example: "Storefront"
descriptionstringFree-text description, at most 1000 characters.
ordinalintegerSort position in the workspace.
Example: 0
notestringA change note (at most 500 characters), saved on the history entry. Environments with `require_note` refuse value writes without one.
Example: "Ticket FLAG-142"
Response · 200 The updated project.
id*string · uuidThe project's id.
workspace_id*string · uuidThe workspace that owns the project.
name*stringDisplay name, unique in the workspace (case-insensitive).
Example: "Storefront"
description*stringFree-text description (may be empty).
Example: ""
ordinal*integerSort position in the workspace (ascending).
Example: 0
environments*arrayThe project's environments, in `ordinal` order.
configs*arrayThe project's configs, in `ordinal` order.
created_at*string · date-timeWhen the project was created.
updated_at*string · date-timeWhen the project last changed.
Example
Request
PATCH https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/projects/{project_id}
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"name": "Storefront",
"description": "string",
"ordinal": 0,
"note": "Ticket FLAG-142"
}Response
{
"id": "00000000-0000-0000-0000-000000000000",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"name": "Storefront",
"description": "",
"ordinal": 0,
"environments": [
{
"id": "00000000-0000-0000-0000-000000000000",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"key": "production",
"name": "Production",
"color": "#c92a2a",
"ordinal": 1,
"protected": true,
"require_note": false,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
],
"configs": [
{
"id": "00000000-0000-0000-0000-000000000000",
"workspace_id": "00000000-0000-0000-0000-000000000000",
"project_id": "00000000-0000-0000-0000-000000000000",
"key": "main",
"name": "Main",
"description": "",
"ordinal": 0,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
],
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}