Materials

Delete a material

DELETE/materials/{material}

Deletes a material. The path names the material by its id, or by its code with by=code. Past orders keep their record of the material. If the material is the default material of a design kind, new designs of that kind start with the first material that the shop offers again.

Request Headers

Bearer <token>

Path Parameters

material*string

The material's id, or its code when by=code.

Query Parameters

by?string

Which key the path holds: id, the default, or code.

Default"id"

Value in

  • "id"
  • "code"

Response Headers

204, 400, 401, 403, 404, 429, default

204, 400, 401, 403, 404, 429, default

204, 400, 403, 404, 429, default

204, 400, 403, 404, 429, default

429

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/materials/string" \  -H "Authorization: Bearer ff_shop_…"
Empty