For Developers

Revoke Role Assignment

DELETE https://ed.link/api/v2/teams/:team_id/members/:membership_id/assignments/:assignment_id

Revokes a specific role assignment from a member, removing the permissions granted by that role.

Permissions

Requires the team_role_assignments.delete system permission.

Revoking the Edlink-managed Owner role (7ebf2dc9-ab3b-448f-9b15-0b38e71f81c9) also requires the caller to already hold that role. Any other caller receives 403 with NO_PERMISSION. Edlink staff are treated as owners.

Parameters

ParameterTypeRequiredDescription
:team_idUUIDYesThe ID of the team.
:membership_idUUIDYesThe ID of the membership record.
:assignment_idUUIDYesThe ID of the role assignment record to revoke.

Sample Request

const response = await axios.delete(`https://ed.link/api/v2/teams/${team_id}/members/${membership_id}/assignments/${assignment_id}`, {
    headers: {
        authorization: `Bearer ${user_session_token}`
    }
});

Sample Response

{ "$request": "00000000-0000-0000-0000-000000000000" }