v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
users

User Organization Transfer Ownership Create

POST /api/users/organization/<unique_organization_id>/transfer-ownership/ - Transfer organization ownership

Transfers ownership of an organization from the current owner to another member. Only the current owner can initiate this transfer.

Request Body: - new_owner_id (int, optional): ID of the new owner - new_owner_email (string, optional): Email of the new owner - Exactly one of new_owner_id or new_owner_email must be provided

Response (200 OK): { "message": "Ownership transferred successfully", "organization_id": 123, "new_owner_id": 456, "new_owner_email": "newowner@example.com" }

Error Responses: - 400: Invalid request (validation errors, cannot transfer to current owner) - 403: User is not the organization owner - 404: Organization not found, or new owner not found/not a member

post/user/organization/{unique_organization_id}/transfer-ownership/

Path parameters

unique_organization_idstring required

Headers

Authorizationstring required

JWT access token or Respan API key

Request body

new_owner_idinteger nullable
new_owner_emailstring email nullable

Response

No response body

UsersUserOrganizationTransferOwnershipCreateResponse200 required

Empty response body