Leave an organization
DELETE
/v1/membership
curl -X DELETE "https://api.summerbase.com/v1/membership" \ -H "Authorization: Bearer sb_..."const response = await fetch("https://api.summerbase.com/v1/membership", { method: "DELETE", headers: { Authorization: "Bearer sb_...", },})const data = await response.json()Leave this organization. The membership goes and the account stays, and it takes an invitation to get back in.
Response
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"}