Update Project
const url = 'https://api.qualia.dev/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"name":"example","description":"example","icon":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”What PATCH /v1/projects/{project_id} changes: only the fields sent.
object
The new name
The new description; null clears it
An icon name from the dashboard’s set; null for none
Example generated
{ "name": "example", "description": "example", "icon": "example"}Responses
Section titled “ Responses ”The workspace as it is now
A workspace (a project), as the dashboard’s workspace pages show it.
object
The organization’s default workspace; it cannot be deleted
Its icon, a name from the dashboard’s set; null for none
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
Example
{ "is_default": false, "my_role": "viewer"}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}The caller cannot change the organization’s workspaces, or the key is restricted to workspaces
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Project not found
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Nothing to change, or a malformed field