Skip to main content
DELETE
cURL
Deletes one organization-level custom drug. custom_drug_id is the custom_drug_id from the catalog list or the bulk-create created[] array. To clear the whole catalog use the bulk delete endpoint instead.

Example Response

Status Codes

Notes

  • Requires the delete:custom_drug scope.
  • Idempotent: deleting an id that does not exist still returns 200.
  • User-level drugs are never affected.

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

Response

Custom drug deleted successfully

success
boolean
required

Indicates if the request was successful

Example:

true

statusCode
integer
required

HTTP status code

Example:

200

message
string
required

Human-readable success message

Example:

"Success"

data
object
required

Response payload data

timestamp
string<date-time>
required

ISO 8601 timestamp of the response

Example:

"2024-01-15T10:30:00.000Z"

requestId
string
required

Unique identifier for request tracing

Example:

"req_1705312200000_abc123"

code
string

Machine-readable operation code

Example:

"SUCCESS"

pagination
object

Pagination information for list operations