# POST /v1/incidents/secrets/{}/grant_access is deprecated

GitGuardian API deprecated POST /v1/incidents/secrets/{}/grant_access without giving a shutdown date yet.

- API: GitGuardian API (api.gitguardian.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/incidents/secrets/{}/grant_access`
- Source: [Announcement](https://api.gitguardian.com/docs)
- Page: https://www.okapi.bot/providers/gitguardian-api/breaking-changes/post-v1-incidents-secrets-grant-access-is-deprecated/

## What to use instead

Grant access with PUT /v1/members/{member_id}/{resource_type}/{resource_id}, PUT /v1/teams/{team_id}/{resource_type}/{resource_id} or PUT /v1/invitations/{invitation_id}/{resource_type}/{resource_id}, the incident as the resource.

## GitGuardian API's words

> Grant a user, an existing invitee or a team access to a secret incident. DEPRECATED: This endpoint has been replaced by this one for members, this one for teams, and this one for invitations.
