Avycenna

Revoke a grant (patient)

Revoke an active or pending grant. The clinician immediately loses access. The patient can revoke any grant on their data; the clinician holding a grant may also end it.

POST
/api/v1/grants/revoke

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/grants/revoke" \  -H "Content-Type: application/json" \  -d '{    "grant_id": "a3c1da8e-13c6-4cab-955b-2120b58c2982"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}