Skip to main content
PUT
/
api
/
v1
/
products
/
order_material
/
{product_id}
Update order materials
curl --request PUT \
  --url https://api.byblend.com/api/v1/products/order_material/{product_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "December advertising postcard",
  "sku": "DEC_AD_001",
  "description": "Features two for one sunscreens."
}'
{
  "id": "0227d1e5-ba9a-42b5-8fe2-38882aa65708",
  "created_at": "2025-03-15T12:00:00Z",
  "updated_at": "2025-03-15T12:00:00Z",
  "current_stock": 927,
  "reorder_threshold": 100,
  "has_inventory": true,
  "sku": "1234567890",
  "name": "Referral Brochure",
  "description": "Customer brochure included in every shipment.",
  "category": "marketing",
  "is_global": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

product_id
string<uuid>
required

Unique (UUID) identifier for the order materials

Example:

"98cae3a3-996c-4bf5-9143-0ab6d98bc1d0"

Body

application/json
name
string

Name of the order material

Example:

"December advertising postcard"

sku
string

External SKU of the product; can be referenced in orders

Example:

"DEC_AD_001"

description
string

Description of the product

Example:

"Features two for one sunscreens."

Response

200 - application/json

Prescription product updated successfully

name
string
Example:

"Referral Brochure"

description
string
Example:

"Customer brochure included in every shipment."

category
string
Example:

"marketing"

is_global
boolean

Whether the material is customer-specific or Blend-wide (e.g. regulatory inserts)

Example:

false

id
string<uuid>

Unique identifier

Example:

"0227d1e5-ba9a-42b5-8fe2-38882aa65708"

created_at
string<date-time>

Date and time of creation

Example:

"2025-03-15T12:00:00Z"

updated_at
string<date-time>

Date and time of last update

Example:

"2025-03-15T12:00:00Z"

current_stock
integer
Example:

927

reorder_threshold
integer
Example:

100

has_inventory
boolean

Whether the product has any inventory associated with it

Example:

true

sku
string

Unique inventory identifier for the product

Example:

"1234567890"

I