Skip to main content
POST
Transfer ownership
Takes a signed-in session only. A managing key is refused with 403. See Editions for what OneCLI Cloud adds. Makes an active admin an owner, and makes you an admin. Owners only, signed in and not using a key.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Path Parameters

id
string
required

The member's user id.

Required string length: 1 - 64

Response

The new owner.

createdAt
string
required

Joined at, ISO 8601.

email
string
required
id
string
required

The person's user id.

name
string | null
required
role
enum<string>
required
Available options:
owner,
admin,
member
roleManaged
boolean
required

A directory group sets this role, so it cannot be changed here.

signInExempt
boolean
required

Break-glass: may sign in without the organization's single sign-on when it is required.

status
enum<string>
required
Available options:
active,
suspended