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.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
application/json- body
name*stringDisplay name for the workspace.
1 <= length <= 255A workspace.
application/json- response
id*stringUnique identifier of the workspace.
name*stringDisplay name.
ownerId*stringUser who owns the workspace. The owner can do everything, including transferring ownership and deleting the workspace.
requiresMfa*booleanWhen true, a member without two-factor authentication is refused on every workspace endpoint until they enrol.
disableAiIntegrations*booleanWhen true, AI tools cannot reach this workspace.
plan*|The plan of the current subscription, or null when the workspace has no active subscription and cannot collect reports.
role*|Your role in this workspace, or null when you own it without being a member.
createdAt*stringWhen the workspace was created.
date-timeupdatedAt*stringWhen the workspace was last changed.
date-timecurl -X POST 'https://api.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"}