Skip to main content
PUT
/
medications
/
{medication_id}
Update Medication
curl --request PUT \
  --url https://api.decodahealth.com/medications/{medication_id} \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "name": "<string>",
  "unit": "AMPOULES",
  "brandName": "<string>",
  "description": "<string>",
  "price": 123,
  "category": "<string>",
  "internalNotes": "<string>",
  "sortOrder": 123,
  "taxable": true,
  "allowCustomPricing": true,
  "isUsedAsTemplate": true,
  "templateAmount": 123,
  "templateAdministrationLocation": "<string>",
  "templateFrequency": "<string>",
  "templateQuantity": 123,
  "templateComment": "<string>",
  "templateLotNumber": "<string>"
}
'
{
  "name": "<string>",
  "taxable": true,
  "allowCustomPricing": true,
  "id": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "isPhysical": true,
  "isArchived": true,
  "unit": "AMPOULES",
  "brandName": "<string>",
  "description": "<string>",
  "price": 0,
  "category": "<string>",
  "internalNotes": "<string>",
  "sortOrder": 123,
  "isUsedAsTemplate": false,
  "templateAmount": 123,
  "templateAdministrationLocation": "<string>",
  "templateFrequency": "<string>",
  "templateQuantity": 123,
  "templateComment": "<string>",
  "templateLotNumber": "<string>",
  "updatedDate": "2023-11-07T05:31:56Z",
  "template": {
    "name": "<string>",
    "id": "<string>",
    "amount": 123,
    "unit": "AMPOULES",
    "administrationLocation": "<string>",
    "frequency": "<string>",
    "quantity": 1,
    "comment": "<string>",
    "lotNumber": "<string>"
  }
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

medication_id
string
required

Body

application/json

Schema for updating a medication product.

name
string | null
unit
enum<string> | null
Available options:
AMPOULES,
APPLICATORS,
BOTTLES,
BOXES,
CAPSULES,
CUPS,
DOSES,
G_PER_ML,
GRAMS,
IU,
IU_PER_ML,
OUNCES,
FLUID_OUNCES,
KG,
KITS,
LITERS,
MCG,
MG,
MG_PER_ML,
ML,
MMOL,
MICROGRAM_PER_ML,
PACKS,
PAIRS,
PATCHES,
PERCENTAGE,
PIECES,
POUCHES,
ROLLS,
SACHETS,
SHEETS,
SPRAYS,
STRIPS,
SYRINGES,
TABLETS,
TABLETS_PER_DAY,
TESTS,
TUBES,
UNITS,
VIALS,
TREATMENTS,
SESSIONS,
PULSES,
JOULES,
CENTIMETERS,
THREAD_COUNT,
INJECTIONS,
WRINKLE_UNITS,
POUNDS,
FEET,
INCHES
brandName
string | null
description
string | null
price
integer | null
category
string | null
internalNotes
string | null
sortOrder
integer | null
taxable
boolean | null
allowCustomPricing
boolean | null
isUsedAsTemplate
boolean | null
templateAmount
number | null
templateAdministrationLocation
string | null
templateFrequency
string | null
templateQuantity
number | null
templateComment
string | null
templateLotNumber
string | null

Response

Successful Response

Schema for returning medication product information.

name
string
required
taxable
boolean
required
allowCustomPricing
boolean
required
id
string
required
createdDate
string<date-time>
required
isPhysical
boolean
required
isArchived
boolean
required
unit
enum<string> | null
Available options:
AMPOULES,
APPLICATORS,
BOTTLES,
BOXES,
CAPSULES,
CUPS,
DOSES,
G_PER_ML,
GRAMS,
IU,
IU_PER_ML,
OUNCES,
FLUID_OUNCES,
KG,
KITS,
LITERS,
MCG,
MG,
MG_PER_ML,
ML,
MMOL,
MICROGRAM_PER_ML,
PACKS,
PAIRS,
PATCHES,
PERCENTAGE,
PIECES,
POUCHES,
ROLLS,
SACHETS,
SHEETS,
SPRAYS,
STRIPS,
SYRINGES,
TABLETS,
TABLETS_PER_DAY,
TESTS,
TUBES,
UNITS,
VIALS,
TREATMENTS,
SESSIONS,
PULSES,
JOULES,
CENTIMETERS,
THREAD_COUNT,
INJECTIONS,
WRINKLE_UNITS,
POUNDS,
FEET,
INCHES
brandName
string | null
description
string | null
price
integer
default:0
category
string | null
internalNotes
string | null
sortOrder
integer | null
isUsedAsTemplate
boolean
default:false
templateAmount
number | null
templateAdministrationLocation
string | null
templateFrequency
string | null
templateQuantity
number | null
templateComment
string | null
templateLotNumber
string | null
updatedDate
string<date-time> | null
template
MedicationTemplateSummary · object

Schema for returning medication template information.