Avycenna

Log a dose

Records a dose as taken or skipped for one of the current user's medications.

POST
/api/v1/medications/log

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/medications/log" \  -H "Content-Type: application/json" \  -d '{    "medication_id": "52ca62b1-67a4-4362-bdc2-d5492ee604f5"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}