Revoke Trust Access grant
POST
/v1/trust-access/admin/grants/{id}/revoke
const url = 'https://api.varman.io/v1/trust-access/admin/grants/example/revoke';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/trust-access/admin/grants/example/revoke \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "reason": "example" }'Immediately revoke a Trust Access grant when a customer review ends or shared compliance access should be removed.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
reason
required
string
Example generated
{ "reason": "example"}Responses
Section titled “Responses”Grant revoked