Skip to content

Update Project

PATCH
/v1/projects/{project_id}
curl --request PATCH \
--url https://api.qualia.dev/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "name": "example", "description": "example", "icon": "example" }'

Rename a workspace, or change its description or icon. Only the fields sent change; a null description clears it, a null icon removes it.

It takes spaces:children on the workspace’s organization, as the dashboard’s workspace settings do: the organization’s contributors, admins and owners. An API key acts as its creator and needs projects:write. A key restricted to workspaces is refused: it does not change the workspace that bounds it.

project_id
required
string format: uuid
Media type application/json
ProjectUpdateRequest

What PATCH /v1/projects/{project_id} changes: only the fields sent.

object
name

The new name

string | null
>= 1 characters <= 255 characters
description

The new description; null clears it

string | null
<= 1000 characters
icon

An icon name from the dashboard’s set; null for none

string | null
/^[a-z][a-z0-9-]{0,39}$/
Example generated
{
"name": "example",
"description": "example",
"icon": "example"
}

The workspace as it is now

Media type application/json
ProjectItem

A workspace (a project), as the dashboard’s workspace pages show it.

object
project_id
required
string format: uuid
name
required
string
description
string | null
created_at
required
string format: date-time
updated_at
required
string format: date-time
is_default

The organization’s default workspace; it cannot be deleted

boolean
icon

Its icon, a name from the dashboard’s set; null for none

string | null
my_role

The caller’s role there (for an API key, its creator’s; the key’s scopes cap what it may do with it); null when it could not be read

string
nullable
Allowed values: viewer contributor admin owner
Example
{
"is_default": false,
"my_role": "viewer"
}

Invalid or missing API key

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

The caller cannot change the organization’s workspaces, or the key is restricted to workspaces

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Project not found

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Nothing to change, or a malformed field