CentralCSP
APIWorkspaces

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.

POST
/v1/workspaces/{workspaceId}/transfer

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.

newOwnerId*string

The userId of the member who becomes the owner. They must already be a member of the workspace.

Length1 <= length

Response Body

application/json

curl -X POST "https://api-next.centralcsp.com/v1/workspaces/string/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"}