CentralCSP
APIWorkspaces

Update a workspace

Renames the workspace.

Requires the admin role on the workspace.

PATCH
/v1/workspaces/{workspaceId}

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name?string

New display name.

Length1 <= length <= 255

Response Body

application/json

curl -X PATCH "https://api-next.centralcsp.com/v1/workspaces/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "Acme",  "ownerId": "string",  "requiresMfa": true,  "disableAiIntegrations": true,  "plan": {    "slug": "pro",    "name": "Pro",    "features": [      "compliance",      "alerting",      "api_keys"    ]  },  "role": "admin",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}