Update Medications
Bulk update medications for a product variant.
Overview
- Method: PUT
- Path:
/brand/medications/update-medications/<productVariantId> - Tags: brand
Parameters
productVariantId (path)
- Type:
string - Required: Yes
- Description: productVariantId parameter
Request Body
- Content Type:
application/json - Required: Yes
Fields
| Field | Type | Required | Details |
|---|---|---|---|
| medications | string | No | |
| name | string | Yes | |
| dosage | string | No | |
| form | string | No | |
| directions | string | Yes | |
| ailments | string | Yes | |
| category | object | Yes | |
| displayOrder | integer | Yes | min: 0 |
| price | integer | No | min: 0 |
| canonicalSku | string | No | minLength: 1 |
| sku | string | No | minLength: 1 |
Responses
200
Successful response
Content Type: application/json
{
"message": "string",
"count": 123
}400
Bad Request
Content Type: application/json
{
"error": "string",
"details": [
{}
]
}401
Unauthorized
404
Not Found
500
Internal Server Error
Example Usage
curl -X PUT \
https://api.pillexa.com/brand/medications/update-medications/<productVariantId> \
-H "Content-Type: application/json" \
-d '{"example": "data"}'