Favicon

You are here: Home > API Reference > Organization > Change organization owner

Change organization owner

Change organization owner

POST
/v1/organizations/:organizationId/change-owner
Copy to clipboard

Change organization owner

Change organization owner

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Entity Id or Slug
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
Body Params application/json
newOwner string required
Entity Id or Slug
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
{
    "newOwner": "string"
}

Responses

200 Response application/json
status boolean optional
data object optional
changed boolean optional
{
    "status": true,
    "data": {
        "changed": true
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}