curl --request POST \
--url https://api.byblend.com/api/v1/reasons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Physical location",
"description": "Patient cannot access physical pharmacy due to natural disasters or similar event.",
"parent_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}'
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"name": "Adherence or Compliance",
"description": "Issues related to patient adherence and medication compliance.",
"is_global": true,
"parent_id": null
}
Add a new compounding reason to the Blend inventory.
curl --request POST \
--url https://api.byblend.com/api/v1/reasons \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "Physical location",
"description": "Patient cannot access physical pharmacy due to natural disasters or similar event.",
"parent_id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708"
}'
{
"id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
"created_at": "2025-03-15T12:00:00Z",
"updated_at": "2025-03-15T12:00:00Z",
"name": "Adherence or Compliance",
"description": "Issues related to patient adherence and medication compliance.",
"is_global": true,
"parent_id": null
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Compounding reason created successfully
The response is of type object
.