Avycenna

Decline a pending grant request (patient)

Decline a **pending** grant request — the clinician never gets access. For revoking an already-active grant, use `/grants/revoke` instead.

POST
/api/v1/grants/{grant_id}/decline

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

grant_id*Grant Id
Formatuuid

Header Parameters

x-api-key?string|null

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/grants/497f6eca-6276-4993-bfeb-53cbbbba6f08/decline"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}