TypeScript
const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({newOwnerId: '<string>'}) }; fetch('http://localhost:4005/v1/arc/organizations/:id/transfer', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "id": "<string>", "organizationId": "<string>", "userId": "<string>", "role": "owner", "createdAt": "2023-11-07T05:31:56Z" }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Transfer ownership to another member. Caller is downgraded to admin and stays in the org. Requires owner role.
1
Ownership transferred successfully
true
Show child attributes
Was this page helpful?