v1

latestOpenAPI 3.0.02026-08-04891301.4 MB

Leave a team

Removes a principal from a team. By default, the authenticated user removes themselves from the team. Provide agent to remove an agent instead — the caller must be a member of the team to do so.

Team owners cannot leave their own team. To transfer ownership first, use the update-membership endpoint, then call this endpoint.

For server-to-server requests, user is required to identify which user should be removed.

delete/api/v1/teams/{team}/leave

Path parameters

teamstring required

Team ID (team_...) to leave.

Response

No content