PUT
/
v1
/
api
/
workspaces
/
{workspaceId}
curl --request PUT \
  --url https://api.trillet.ai/v1/api/workspaces/{workspaceId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '{
  "name": "<string>"
}'
{
  "_id": "<string>",
  "name": "<string>",
  "userId": "<string>",
  "initials": "<string>",
  "pricingTier": "<string>",
  "isMasterWorkspace": true,
  "teamMembers": [
    {}
  ],
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Path Parameters

workspaceId
string
required

The unique identifier of the workspace to update.

Headers

x-workspace-id
string
required

The workspace ID (should match the workspaceId path parameter).

Request Body

name
string
required

The new name for the workspace.

Response Fields

_id
string

The unique identifier of the workspace.

name
string

The updated name of the workspace.

userId
string

The ID of the user who owns the workspace.

initials
string

The initials assigned to the workspace.

pricingTier
string

The pricing tier assigned to the workspace.

isMasterWorkspace
boolean

Indicates whether this is a master workspace.

teamMembers
array

List of team members associated with the workspace.

createdAt
string

Timestamp when the workspace was created (ISO 8601 format).

updatedAt
string

Timestamp when the workspace was last updated (ISO 8601 format).