Platitun · API · Listings · Remove the image

Remove the image

DELETE /api/v1/listings/{number}/image

Key scope: listings · changes data, the Idempotency-Key header is required

The listing stays; the image is deleted together with its file on disk: a dangling file without a listing serves nobody and will eventually fill the disk. The response comes with an empty image field — that is how you see it is gone.

Response fields

FieldTypeWhat it is
imagenullEmpty: there is no image any more.

Refusal reasons

A rule refusal arrives as {"error":"rejected","refusal":{"kind":"…"}} with status 409. Refusals common to all endpoints are in the rules section.

CodeWhat happened and what to do
not_foundThe record does not exist or is not yours. The ownership condition is in the database query itself, so someone else’s record looks like a missing one.

Nearby in this section