Platitun · API · Listings · Remove the image
Remove the image
DELETE /api/v1/listings/{number}/imageKey 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
| Field | Type | What it is |
|---|---|---|
image | null | Empty: 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.
| Code | What happened and what to do |
|---|---|
not_found | The 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
GET /api/v1/listings— My listingsPOST /api/v1/listings— Create a listingGET /api/v1/listings/{number}— One of my listingsPATCH /api/v1/listings/{number}— Update a listingDELETE /api/v1/listings/{number}— Remove a listingPOST /api/v1/listings/{number}/state— Switch on, switch off, auto-deliveryPOST /api/v1/listings/{number}/copy— Copy a listingPOST /api/v1/listings/{number}/test— Mark a listing as testPUT /api/v1/listings/{number}/image— The listing imageGET /api/v1/questions— Questions about my listingsPOST /api/v1/questions/{id}/answer— Answer a question