CentralCSP
APIWorkspaces

Create a workspace

Creates a workspace with you as its owner and first admin. A new workspace has no subscription, so choose a plan before it can collect reports.

POST
/v1/workspaces

Authorization

AuthorizationBearer <token>

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

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*string

Display name for the workspace.

Length1 <= length <= 255

Response Body

application/json

curl -X POST "https://api-next.centralcsp.com/v1/workspaces" \  -H "Content-Type: application/json" \  -d '{    "name": "Acme"  }'
{  "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"}