Brand
Medications
Update Medications

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

FieldTypeRequiredDetails
medicationsstringNo
namestringYes
dosagestringNo
formstringNo
directionsstringYes
ailmentsstringYes
categoryobjectYes
displayOrderintegerYesmin: 0
priceintegerNomin: 0
canonicalSkustringNominLength: 1
skustringNominLength: 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"}'