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[]required

    Your lots to change.

  • price_centsintegerrequired

    The 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

StatusCodeWhen
422bad_lotThe list is empty, a price is outside 3 to 100000000 cents, or a filter is outside its range.
422too_many_lotsMore than 100 items in one request.

Any route can also answer with the statuses on the Errors page.