Remove a member
DELETE
/v1/memberships/:id
curl -X DELETE "https://api.summerbase.com/v1/memberships/:id" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/memberships/:id", { method: "DELETE", headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Remove a member from the organization. They keep their account.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Example
0198f1a2-6c40-7a9e-8d1b-3f5e7c9a2b64Response
Section titled “Response”Returns the deleted membership’s id, with deleted: true.
Media typeapplication/json
Example
{ "deleted": true, "id": "6f1c2a9e-0b7d-4c3e-9a51-2f8d4e7b1c60", "object": "membership"}