PATCH
/
workspaces
/
{workspace_id}
curl --request PATCH \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "My Workspace",
  "notification_emails": [
    "notifications@mycompany.slack.com"
  ]
}'
{
  "data": {
    "api_key": "YourAPIKeyHere",
    "created_at": "2023-09-05T19:42:42.672Z",
    "id": 123,
    "name": "My Workspace",
    "notification_emails": [
      "notifications@mycompany.slack.com"
    ],
    "organization_id": 1
  },
  "status": "updated"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

workspace_id
integer
required

ID of the workspace

Body

application/json
name
string
required

The name of the retrieved workspace.

notification_emails
string[]

The list of emails that will receive alerts from the workspace.

Response

200 - application/json
data
object
required
status
enum<string>
required

The outcome of the update request

Available options:
updated