Remove a member, or leave
People only, with a fresh second factor.
People only, with a fresh second factor. Anyone may remove themselves; otherwise the rules of updateMember apply, and the last owner cannot go (conflict). The keys the member made are revoked, or with keys=hand_over handed to the owner hand_to. The member is refused everywhere within 60 seconds, as a revoked key is. Removing someone who is not a member is not_found.
For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.
Request
curl -X DELETE "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/members/example" \
-H "Authorization: Bearer $POD_PERSON_TOKEN"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
account | path | string | Yes | The member's identity account id. |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
keys | query | "revoke" | "hand_over" | No | What happens to the keys the member made. |
hand_to | query | string | No | With keys=hand_over: the owner who takes the keys. |
Answer
200. Who was removed and what became of their keys.
{
"account": "example",
"organisation": "org_3ahrz6dmv29gqy5ckt18fp",
"keys_revoked": 0,
"keys_handed_over": 0
}| Field | Type | Always | What it is |
|---|---|---|---|
account | string | Yes | An identity account id, the sub of the person's Mapier identity token. |
organisation | string | Yes | |
keys_revoked | integer | Yes | At least 0. |
keys_handed_over | integer | Yes | At least 0. |
Errors
The refusals this call is known for: invalid, person_required, forbidden, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.
In the SDKs
| Client | Call |
|---|---|
| TypeScript | pod.organisations.members.remove(orgId, account) |
| Python | pod.organisations.members.remove(org_id, account) |