Remove Member
const url = 'https://example.com/v1/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/v1/members/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'X-API-Key: <X-API-Key>'Take a person’s role on one workspace away (they keep what the
organization gives them), or remove them from the organization. Needs
members:write. A key never removes its own creator from the
organization: leaving one takes a signed-in session.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”A workspace of the organization; omit it for the organization itself. A workspace key names its own workspace.
A workspace of the organization; omit it for the organization itself. A workspace key names its own workspace.
Removing from the organization: the workspaces they stay a guest of, at the role they hold there
Removing from the organization: the workspaces they stay a guest of, at the role they hold there
Responses
Section titled “ Responses ”The change and what they keep
What setting or removing a role did.
object
The space the role is on
Its organization
object
The role granted here now; null once removed
The role granted here before
False when the role was already that
The role they hold here now, inherited or not; null when they hold none
object
Enough of a space to name it.
object
A workspace’s icon; null for none
Removed from the organization: the workspaces they stay a guest of
object
Example
{ "kind": "organization", "role": "viewer", "from": "viewer", "effective": { "role": "viewer", "granted_on": { "kind": "organization" } }, "kept": [ { "role": "viewer" } ]}Refused by the role rules
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}The key lacks members:write, or its creator may not give or take this role here (nobody grants above their own role)
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Not found or not readable
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}The organization’s last owner stays
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}