Give lots one price
PATCH/v1/lots
Gives up to 100 of your lots the same new price. Lots that sold or were taken down meanwhile are skipped: the answer names the ones it changed.
Request
Request body
idsstring[]requiredYour lots to change.
price_centsintegerrequiredThe price in US cents.
curl -X PATCH 'https://api.rockvel.store/v1/lots' \
-H "Authorization: Bearer $ROCKVEL_KEY" \
-H 'Content-Type: application/json' \
-d '{"ids":["019a4b9d-2e17-7a58-b1c6-0d3f6a9e4b12"],"price_cents":3190}'Answer 200
idsstring[]The lots: those asked about, or in an answer those it changed.
{ "ids": ["019a4b9d-2e17-7a58-b1c6-0d3f6a9e4b12"] }Refusals
| Status | Code | When |
|---|---|---|
| 422 | bad_lot | The list is empty, a price is outside 3 to 100000000 cents, or a filter is outside its range. |
| 422 | too_many_lots | More than 100 items in one request. |
Any route can also answer with the statuses on the Errors page.