Skip to main content
PUT
/
api
/
v1
/
products
/
{productId}
/
options
/
upc
cURL
curl --request PUT \
  --url https://api-staging.getmeadow.com/api/v1/products/{productId}/options/upc \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Key: <api-key>' \
  --header 'X-Consumer-Key: <api-key>' \
  --data '
{
  "options": [
    {
      "id": 123,
      "upc": "<string>"
    }
  ]
}
'
{
  "options": [
    {
      "id": 123,
      "name": "<string>",
      "amount": 123,
      "price": 123,
      "upc": "<string>"
    }
  ]
}
You may notice there are extra properties in the response than are dictated below. Generally speaking, you should only ever have to use the properties that we explicitly documented below. If you have any questions, please feel free to reach out.

Authorizations

X-Consumer-Key
string
header
required

The key assigned to your company and provided via Meadow

X-Client-Key
string
header
required

The key generated and provided by our mutual client

Path Parameters

productId
integer<int64>
required

ID of the product these options belong to

Body

application/json
options
object[]
required

Array of product options to update

Response

Update UPC response

options
object[]

The options for this product. Please note that all options will be returned, not just the ones you submitted.