Remove someone, or leave
DELETE
/members/{user_id}
const url = 'https://api.global.stillbox.example/v1/members/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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://api.global.stillbox.example/v1/members/example \ --header 'Authorization: Bearer <token>'Owners can remove anyone; anyone can remove themselves. Their API keys for this organization stop working at once, and so do their open terminals and streams. The sandboxes they created stay.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
string
Responses
Section titled “Responses”They are no longer a member
The API key is missing or invalid
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}Only an owner can do this (owner_only), or the invitation is for another address (not_invited)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}The change would leave the organization without an owner (last_owner), its seats are full (member_limit), or
the person is already a member (already_member)
Media typeapplication/json
object
code
required
string
message
required
string
Example
{ "code": "not_found"}