Material kinds

Delete a material kind

DELETE/material-kinds/{material_kind}

Deletes a material kind. The path names the material kind by its id, or by its code with by=code. While the kind has materials, the delete is refused with 409 entity-in-use. With force=true, the kind is deleted together with its materials, and past orders keep their record of those materials.

Request Headers

Bearer <token>

Path Parameters

material_kind*string

The material kind'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"
force?boolean

true deletes the material kind even while it has materials, and deletes them with it.

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/material-kinds/string" \  -H "Authorization: Bearer ff_shop_…"
Empty