PUT
/
rest
/
workspaces
/
{id}
curl --request PUT \
  --url https://copilotz.com/rest/workspaces/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Edit the name of your workspace"
}'
{
  "name": "Edit the name of your workspace"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Body

application/json

Request payload for creating or updating a workspace.

name
string
required

Name of the workspace.

Example:

"Edit the name of your workspace"

Response

200 - application/json
Successful response

Response containing workspace details.

name
string
required

Name of the workspace.

Example:

"Edit the name of your workspace"