v1

latestOpenAPI 3.0.3Apache 2.02026-07-142201861.5 MB
Teams

Delete an Organization Member from a Team

Delete an organization member from a team.

Note the permission scopes vary depending on the type of authorization token. The following table outlines the accepted scopes.

<table style="width: 100%;"> <tr style="width: 50%;"> <td style="width: 50%; text-align: center; font-weight: bold; vertical-align: middle;"><a href="https://docs.sentry.io/api/auth/#auth-tokens">Org Auth Token</a></td> <td style="width: 50%; text-align: left;"> <ul style="list-style-type: none; padding-left: 0;"> <li><strong style="color: #9c5f99;">&bull; org:write</strong></li> <li><strong style="color: #9c5f99;">&bull; org:admin</strong></li> <li><strong style="color: #9c5f99;">&bull; team:admin</strong></li> </ul> </td> </tr> <tr style="width: 50%;"> <td style="width: 50%; text-align: center; font-weight: bold; vertical-align: middle;"><a href="https://docs.sentry.io/api/auth/#user-authentication-tokens">User Auth Token</a></td> <td style="width: 50%; text-align: left;"> <ul style="list-style-type: none; padding-left: 0;"> <li><strong style="color: #9c5f99;">&bull; org:read*</strong></li> <li><strong style="color: #9c5f99;">&bull; org:write</strong></li> <li><strong style="color: #9c5f99;">&bull; org:admin</strong></li> <li><strong style="color: #9c5f99;">&bull; team:admin</strong></li> <li><strong style="color: #9c5f99;">&bull; org:read + team:admin**</strong></li> </ul> </td> </tr> </table>

*org:read can only be used to remove yourself from the teams you are a member of.

**Team Admins must have both org:read and team:admin scopes in their user authorization token to delete members from their teams.

delete/api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/

Path parameters

organization_id_or_slugstring required

The ID or slug of the organization the resource belongs to.

member_idstring required

The ID of the organization member to delete from the team

team_id_or_slugstring required

The ID or slug of the team the resource belongs to.

Response

idstring required
slugstring required
namestring required
dateCreatedstring date-time nullable required
isMemberboolean required
teamRolestring nullable required
flagsobject required
accessstring[] required
hasAccessboolean required
isPendingboolean required
memberCountinteger required