Files
dashback/docs/api/routes/brand/_id/image.delete.md
2026-10-06 04:43:35 +02:00

1008 B

DELETE /brand/{id}/image

Protected. Requires a valid session cookie (credentials: 'include').

Delete brand image

Removes the brand's image. Sets thumbW, thumbH, thumbHash back to null.

Path parameters

Param Required Type Description
id yes integer Brand id

Response 200

Image removed

{
  "brand": {
    "id": 1,
    "thumbW": 1,
    "thumbH": 1,
    "thumbHash": "…",
    "pics": [
      {
        "id": 1,
        "sort": 1,
        "fullHash": "…",
        "thumbW": 1,
        "thumbH": 1,
        "thumbHash": "…"
      }
    ]
  }
}

Errors

Status Description
400 No company selected or invalid id — {"error":"…"}
401 Unauthorized — {"error":"…"}
403 Not authorized — {"error":"…"}
404 Brand or image not found — {"error":"…"}

Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.