v1

latestOpenAPI 3.0.12026-07-227292131.4 KB
organizations

Transfer organization ownership

Transfers the ownership of an organization to another user within the organization.

  • Only the current organization owner can perform this action.
  • The new owner must be an existing member of the organization.
  • The current owner will be demoted to a regular user after the transfer.
patch/organizations/{orgId}/owner

Path parameters

orgIdstring uuid required
Example:a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11

The organization's ID.

  • Must be a valid UUID.

Request body

newOwnerIdstring required

The user ID of the new owner, who must be a current member of the organization.

Example request

{
  "newOwnerId": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
}

Response

Successfully transferred the organization ownership.