Skip to main content
PUT
/
api
/
v1
/
products
/
non_prescription
/
{product_id}
Update non-prescription product
curl --request PUT \
  --url https://api.byblend.com/api/v1/products/non_prescription/{product_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Winter Sunscreen",
  "sku": "SCREEN_09217",
  "description": "Sunscreen exclusively designed for cloudy days."
}'
{
  "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": "Krill Farms Fish Oil",
  "description": "A fish oil supplement complementary to prescribed products.",
  "category": "nutrition",
  "form": "liquid",
  "is_active": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

non-prescription product ID
string<uuid>
required

Unique (UUID) identifier for the non-prescription product

Example:

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

Body

application/json
name
string

Name of the product

Example:

"Winter Sunscreen"

sku
string

External SKU of the product; can be referenced in orders

Example:

"SCREEN_09217"

description
string

Description of the product

Example:

"Sunscreen exclusively designed for cloudy days."

Response

200 - application/json

Non-prescription product updated successfully

name
string
Example:

"Krill Farms Fish Oil"

description
string
Example:

"A fish oil supplement complementary to prescribed products."

category
string

Optional category of the product

Example:

"nutrition"

form
string

Optional form of the product for customer use, if desired.

Example:

"liquid"

is_active
boolean

Whether the product is currently active for purchase

Example:

true

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