TypeScript
const options = {method: 'DELETE'}; fetch('http://localhost:8000/api/v1/organizations/{id}/members/{userId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": null, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Remove a member from the organization. Admins can remove any member, users can remove themselves. Cannot remove the last admin.
1
Member removed successfully
true
Show child attributes
Was this page helpful?