Skip to content

Update workspace

PATCH
/api/v1/workspaces/{id}
curl --request PATCH \
--url https://example.com/%7B%7Bapp_url%7D/api/v1/workspaces/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "auto_join": true }'

Updates a single workspace by ID.

id
required
integer

Workspace ID

Media typeapplication/json
object
name
string
auto_join

Whether new users in the organization are automatically added to this workspace.

boolean
Example
true

Successful

Media typeapplication/json
object
id
required
integer
name
required
string
auto_join
required
boolean
created_at
required
string format: date-time
Example
{
"id": 12345,
"name": "Default workspace",
"auto_join": true,
"created_at": "2023-08-23T10:30:00.000Z"
}

Unauthorized

Media typeapplication/json
object
message
required
string
Example
{
"message": "Record not found"
}

Forbidden

Media typeapplication/json
object
message
required
string
Example
{
"message": "Record not found"
}

Not Found

Media typeapplication/json
object
message
required
string
Example
{
"message": "Record not found"
}

Unprocessable Entity

Media typeapplication/json
object
message
required
string
errors
required
object
key
additional properties
Array<string>
Example
{
"errors": {
"username": [
"Username is required.",
"Username must be unique."
],
"email": [
"Invalid email format."
]
}
}