members.leave
Leave an organization
- Request
- POST
/api/v1/organizations/{organizationSlug}/leave - Scope required
organizations:write- Effect
- Changes data. Send an Idempotency-Key if you might retry it.
- Acts on
- Acts on an organization, and names it in the path.
- MCP tool
members_leave- Environment
- Live and sandbox alike.
- Request body
- JSON.
What it does
Ends the calling account's own membership, whatever its role, and stops every board it had shared with that organization from being shared. Nothing of the account's own is deleted. The sole owner of an organization is refused with 422: hand ownership to somebody else with `members.update_role` first, or delete the organization outright with `organizations.delete`. Answers with the boards that stopped being shared.
Parameters
| Name | Sent in | Requirement | Accepts |
|---|---|---|---|
| organizationSlug | path | Required | string |
Response
- unsharedBoardIds
- array of string, required
Examples
An applicant leaves their career centre
curl -s -X POST https://www.jobapplicationtracking.com/api/v1/organizations/northside-career-center/leave \
-H "Authorization: Bearer $JAT_KEY"{
"unsharedBoardIds": [
"brd_7"
]
}