Source: https://support.atomicwork.com/api-reference/access-management/postapi-v1-iga-grants-grant-id-revoke

# Revoke a grant

POST `https://{tenant}.atomicwork.com/api/v1/iga/grants/{grant_id}/revoke`

Revoke a grant. By default (skip\_deprovisioning=true), marks the grant as REVOKED
immediately without triggering IDP deprovisioning. Set skip\_deprovisioning=false to
trigger the full deprovisioning workflow (Azure AD/Okta group removal or service request creation).

## Authorization

#### X-Api-Key (header, string, required)

API key authentication.

## Headers

#### X-Workspace-Id (header, string)

## Path Parameters

#### grant\_id (path, integer, required)

The grant ID to revoke

## Body

#### reason (body, string)

Optional reason for revoking the grant

#### skip\_deprovisioning (body, boolean)

When true (default), marks the grant as REVOKED immediately without triggering IDP deprovisioning. When false, triggers the full deprovisioning workflow (Azure AD/Okta group removal or service request creation).

## Response

#### 200

Successful response

#### Request

```bash cURL
curl -X POST 'https://{tenant}.atomicwork.com/api/v1/iga/grants/{grant_id}/revoke' \
  -H 'X-Api-Key: <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{"reason": "string", "skip_deprovisioning": true}'
```

```javascript JavaScript
const res = await fetch('https://{tenant}.atomicwork.com/api/v1/iga/grants/{grant_id}/revoke', {
  method: 'POST',
  headers: {
    'X-Api-Key': '<api-key>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"reason": "string", "skip_deprovisioning": true}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://{tenant}.atomicwork.com/api/v1/iga/grants/{grant_id}/revoke',
    headers={'X-Api-Key': '<api-key>'},
    json={"reason": "string", "skip_deprovisioning": true}
)
data = res.json()
```
