Skip to main content
PATCH
/
workspaces
/
{workspace_id}
Update Workspace
curl --request PATCH \
  --url https://api.wacht.dev/workspaces/{workspace_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>"
}'
{
  "id": "<string>",
  "organization_id": "<string>",
  "name": "Engineering Team",
  "slug": "engineering",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "member_count": 12,
  "roles": [
    {
      "id": "<string>",
      "name": "Admin",
      "description": "<string>",
      "permissions": [
        "workspace.manage",
        "members.invite",
        "members.remove"
      ],
      "is_default": false,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

workspace_id
string
required

Body

application/json
name
string
description
string

Response

id
string
organization_id
string
name
string
Example:
slug
string
Example:
description
string | null
created_at
string<date-time>
updated_at
string<date-time>
member_count
integer
Example:
roles
object[]