POST
/
workspace
/
update
/
{workspace_id}
Update an existing workspace
curl --request POST \
  --url https://api.callab.ai/v1/workspace/update/{workspace_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspace_name": "<string>"
}'
{
  "status": "<string>",
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_slug": "<string>",
    "workspace_name": "<string>",
    "company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
string<uuid>
required

ID of the workspace to update.

Body

application/json

Workspace update data.

Data required to update an existing workspace. Currently, only workspace_name can be updated.

workspace_name
string
required

The new name for the workspace.

Response

Workspace updated successfully or error if update fails (e.g., name conflict, workspace not found).

status
string
required

Status of the response (e.g., 'success', 'error').

message
string
required

A descriptive message for the response.

data

The updated workspace object or an error string. Represents a workspace.