Skip to main content

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

Parameters this endpoint accepts, where each one goes, and whether it is required
NameSent inRequirementAccepts
organizationSlugpathRequiredstring

Response

unsharedBoardIds
array of string, required

Examples

An applicant leaves their career centre

An applicant leaves their career centre — request
curl -s -X POST https://www.jobapplicationtracking.com/api/v1/organizations/northside-career-center/leave \
  -H "Authorization: Bearer $JAT_KEY"
An applicant leaves their career centre — response
{
  "unsharedBoardIds": [
    "brd_7"
  ]
}

Related operations