Skip to main content
PUT
/
access_grants
/
{access_grant_token}
Update access grant
curl --request PUT \
  --url https://api.vantage.sh/v2/access_grants/{access_grant_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "access": "denied"
}
'
{
  "token": "rsrc_accss_grnt_eea11f0d35318b0d",
  "resource_token": "rprt_e84d7760ab2dd7dc",
  "access": "allowed",
  "team_token": "team_25fc4aa890869602",
  "created_at": "2024-01-18T17:39:36Z",
  "created_by": "usr_57ed2fa2a7b30166"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

access_grant_token
string
required

Body

application/json

Update an AccessGrant.

access
enum<string>
required

Allowed or denied access to resource.

Available options:
denied,
allowed

Response

AccessGrant model

token
string
required
resource_token
string
required

The token for any resource the AccessGrant is applied to.

Example:

"rprt_abcd1234"

access
string
required

The access status of the AccessGrant.

team_token
string | null
required

The Team token for which an AccessGrant is applied to.

created_at
string
required

The date and time, in UTC, the AccessGrant was created. ISO 8601 Formatted.

Example:

"2023-08-04T00:00:00Z"

created_by
string | null
required

The token for the User who created the AccessGrant.