PUT /prices/{id}.json
PUT
/prices/{id}.json
Path parameters
-
id integer(int64) Required
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
compareAtPrice number | null
Compare at price
-
createdAt string(date-time)
Created at
-
id integer(int32)
Id
-
price number Required
Price
-
priceListId integer(int32) Required
Price list
-
updatedAt string(date-time)
Updated at
-
variantId integer(int32) Required
Variant
PUT /prices/{id}.json
curl \
-X PUT http://api.example.com/v1/prices/{id}.json \
-H "Content-Type: application/json" \
-d '{"compareAtPrice":42.0,"createdAt":"2023-05-04T09:42:00+00:00","id":42,"price":42.0,"priceListId":42,"updatedAt":"2023-05-04T09:42:00+00:00","variantId":42}'
Request example
{
"compareAtPrice": 42.0,
"createdAt": "2023-05-04T09:42:00+00:00",
"id": 42,
"price": 42.0,
"priceListId": 42,
"updatedAt": "2023-05-04T09:42:00+00:00",
"variantId": 42
}