Transfer the workspace to another member
Transfer the workspace to another member: CustomDomain™ API reference in the members group. Covers parameters, request body, responses and error codes.
The workspace's creator makes another member who has accepted their invite the owner of the workspace; the creator becomes an admin. Only the creator may do this, and not with an agent's token or the workspace default key. Answers 404 where the feature is not enabled.
Authorization
apiKey Long-lived tenant API key, cd_live_… (production) or cd_test_… (staging, development), stored hashed. Keys created before the switch to cd_ start with sk_live_… / sk_test_… and are still accepted. Scoped to the owning application's tenant.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/members:transfer-ownership" \ -H "Content-Type: application/json" \ -d '{ "member_id": "string" }'{ "owner": { "id": "string", "tenant_id": "string", "email": "string", "role": "owner", "status": "active", "invited_by": "string", "inviter_email": "string", "inviter_name": "string", "invite_sent_at": "2019-08-24T14:15:22Z", "invite_expires_at": "2019-08-24T14:15:22Z", "invite_token": "string", "accepted_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" }, "previous_owner": { "id": "string", "tenant_id": "string", "email": "string", "role": "owner", "status": "active", "invited_by": "string", "inviter_email": "string", "inviter_name": "string", "invite_sent_at": "2019-08-24T14:15:22Z", "invite_expires_at": "2019-08-24T14:15:22Z", "invite_token": "string", "accepted_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}{ "code": "account_not_verifiable", "title": "string", "details": "string", "request_id": "string", "challenge": { "value": "string", "bits": 1, "expires_at": "2019-08-24T14:15:22Z" }}