Transfer workspace ownership
Hands ownership to another member of the workspace, who is promoted to admin. You stay an admin and lose the owner-only permissions.
Requires workspace ownership.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
application/json- body
newOwnerId*stringThe userId of the member who becomes the owner. They must already be a member of the workspace.
1 <= lengthA 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/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/transfer' \ -H 'Content-Type: application/json' \ -d '{ "newOwnerId": "string"}'{ "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"}Delete a workspace DELETE
Deletes the workspace, its websites, members, and collected reports, and cancels its subscription. Report ingestion for its websites stops immediately.
Set AI tool access PUT
Turns AI tool access to this workspace off, or back on. While it is off, AI tools connected to any member's account get 403 on this workspace.