Skip to main content
PUT
/
api
/
v1
/
reasons
/
{reason_id}
Update a custom compounding reason
curl --request PUT \
  --url https://api.byblend.com/api/v1/reasons/{reason_id} \
  --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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

reason_id
string
required

Unique (UUID) identifier fofor the compounding reason

Body

application/json
name
string

Short name, e.g. 'Swallowing Difficulty'

Example:

"Physical location"

description
string

Additional details of the compounding reason

Example:

"Patient cannot access physical pharmacy due to natural disasters or similar event."

parent_id
string

ID of the parent reason, if you wish to nest reasons under a global parent (e.g. 'Adherence or Compliance') or your own custom parent.

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

Response

200 - application/json

Compounding reason updated successfully

id
string<uuid>

Unique identifier

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

created_at
string<date-time>

Date and time of creation

Example:

"2025-03-15T12:00:00Z"

updated_at
string<date-time>

Date and time of last update

Example:

"2025-03-15T12:00:00Z"

name
string
Example:

"Adherence or Compliance"

description
string
Example:

"Issues related to patient adherence and medication compliance."

is_global
boolean

Whether the reason is a global reason (provided by Blend) or a customer-specific reason.

Example:

true

parent_id
string

UUID of the parent reason, or null if this is a top-level reason.

Example:

null

I