Skip to main content
PUT
cURL
Updates one organization-level custom drug. Send only the fields to change. Omitted fields are left as they are. custom_drug_id is the custom_drug_id from the catalog list or the bulk-create created[] array. It must exist in this organization’s catalog, or 404 is returned.

Example Request

Example Response

Status Codes

Notes

  • Requires the update:custom_drug scope.
  • Organization-level only. Use the user-level endpoint for a prescriber’s personal drugs.
  • Fields not set on the drug are omitted from data.

Authorizations

Authorization
string
header
required

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

Headers

x-organization-secret
string
required

Organization secret for authentication - provided by Parchment

Path Parameters

organization_id
string<uuid>
required

Organization ID

custom_drug_id
string
required

custom_drug_id from the catalog or bulk-create response

Body

application/json

Partial custom drug fields to update

Partial custom drug fields to update. Send only the fields to change.

item_generic_name
string
Maximum string length: 280
item_trade_name
string
Maximum string length: 280
brand_name
string
Maximum string length: 100
item_strength
string
Maximum string length: 100
item_form
string
Maximum string length: 50
route_of_administration
string
Maximum string length: 50
quantity
string
max_repeats
string
poison_class
string

Schedule with the S prefix, S2 to S9. A bare digit is rejected.

Maximum string length: 2
Pattern: ^S[2-9]$
Example:

"S4"

custom_product_id
string

Your own identifier for this drug. Never generated by Parchment. Not checked for uniqueness.

Maximum string length: 50
Example:

"EK-12345"

description
string
Maximum string length: 280
patient_instructions
string
Maximum string length: 250
doctor_instructions
string
Maximum string length: 50

Response

Custom drug updated successfully

success
boolean
statusCode
integer
message
string
code
string
Example:

"SUCCESS"

data
object

A custom drug as exposed to partners. custom_drug_id is the unique identifier used to prefill the prescription form.

timestamp
string
requestId
string