Skip to main content
PUT
/
v1
/
api
/
workspaces
/
{workspaceId}
Update Workspace Name
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>",
  "initials": "<string>",
  "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.
initials
string
The initials assigned to the 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).