Skip to main content
DELETE
cURL
This permanently deletes every organization-level custom drug for the organization. It is irreversible.

Integration Notes

  1. Scope Requirement: Your API token must include the delete:custom_drug scope.
  2. Organization admin/owner required: The acting user (the token’s user_id) must be an organization owner or admin. A token that carries the correct scope but whose user is a non-admin (e.g. a prescriber) is rejected with 401 Unauthorized. This restriction applies only to the organization-level (bulk) endpoints; the user-level custom-drug endpoints have no such requirement.
  3. Confirmation required: You must pass ?confirm=true. Without it the request returns 400 and nothing is deleted.
  4. Scope of effect: Removes all organization-level drugs (ORGANIZATION#{organization_id}). User-level drugs are not affected.

Example Request

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

Query Parameters

confirm
enum<string>
required

Must be true to confirm the destructive wipe

Available options:
true

Response

All organization custom drugs deleted

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