Avycenna

Accept a grant request (patient)

Accept a pending grant, making the requesting clinician's access active. Available to all authenticated users (any role can act as a patient).

POST
/api/v1/grants/accept

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query 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/accept?grant_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}