curl --request POST \
--url https://api.example.com/api/users/{userId}/transfer-ownership \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"type": "invited",
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"isService": true,
"roles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>"
}
]
}Transfers the ownership of organisation to given user.
curl --request POST \
--url https://api.example.com/api/users/{userId}/transfer-ownership \
--header 'Authorization: Bearer <token>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "[email protected]",
"type": "invited",
"status": "active",
"createdAt": "<string>",
"updatedAt": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"isService": true,
"roles": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>"
}
]
}Unique identifier of the user to transfer ownership to
The previous owner user (now demoted to admin)
The previous owner user (now demoted to admin)
Unique identifier of the user
Email address of the user
User type/role within the organisation
invited, member, author, admin, owner Current status of the user account
active, disabled, locked Timestamp when the user was created
Timestamp when the user was last updated
First name of the user
Last name of the user
Whether this is a service account
Roles assigned to the user
Show child attributes
Was this page helpful?