Brand
Medications
Create Compound

Create Compound

Create a new compound for the specified product variant.

Overview

  • Method: POST
  • Path: /brand/medications/create-compound/<productVariantId>
  • Tags: brand

Parameters

productVariantId (path)

  • Type: string
  • Required: Yes
  • Description: productVariantId parameter

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
namestringYes
descriptionstringNo
dosagestringNo
instructionsstringNo

Responses

200

Successful response

Content Type: application/json

{
  "compound": "string",
  "name": "string",
  "description": "string",
  "dosage": "string",
  "instructions": "string",
  "created_at": "2024-01-01T00:00:00.000Z",
  "updated_at": "2024-01-01T00:00:00.000Z"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/brand/medications/create-compound/<productVariantId> \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'