Delete Membership
delete
/v1/memberships/{membership_id}Revokes a person's access to the workspace by deleting their membership. Side effect: removes the membership so the person loses workspace access. Returns no body.
Requires a bearer token: Authorization: Bearer <token>.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| membership_id | string <uuid> | Yes | Public UUID of the membership.e.g. 3d4e5f60-7182-493a-a4b5-c6d7e8f9a0b1 |
Request
cURL
curl -X DELETE https://api.wellapp.ai/v1/memberships/{membership_id} \
-H "Authorization: Bearer $WELL_API_TOKEN"Responses
204 — The membership was revoked.
401 — Unauthorized
{
"code": "UNAUTHORIZED",
"status": 401,
"title": "Unauthorized",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}403 — Forbidden
{
"code": "FORBIDDEN",
"status": 403,
"title": "Forbidden",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}404 — Not Found
{
"code": "NOT_FOUND",
"status": 404,
"title": "Not Found",
"message": "See title.",
"meta": {
"trace_id": "a1b2c3",
"log_id": "a1b2c3"
}
}