latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

Internal Secret Incidents

Revoke access to a secret incident

Revoke access of a user, an existing invitee or a team to a secret incident.

DEPRECATED: This endpoint has been replaced by this one for members, this one for teams, and this one for invitations.

post/v1/incidents/secrets/{incident_id}/revoke_access

Path parameters

incident_idinteger required

The id of the incident to retrieve

Request body

emailstring

Email address of a user or invitee. This parameter is mutually exclusive with member_id, invitation_id and team_id.

member_idnumber

Id of a member. This parameter is mutually exclusive with email, invitation_id and team_id.

invitation_idnumber

Id of an invitation. This parameter is mutually exclusive with email, member_id and team_id.

team_idnumber

Id of a team, except for the global team. This parameter is mutually exclusive with email, member_id and invitation_id.

Example request

{
  "member_id": 1492
}

Response

The access was revoked successfully.