Skip to main content

Archive Product Type

PUT 

/api/v2/product-types/:type/archive

Archive a product type so it disappears from lists, pickers and the channel category maps. A type with active child types cannot be archived — archive or move the children first. A type that still carries products needs move_to: its products and its per-channel category-map rows are merged into that leaf type first (the same rules as Merge Product Type), then the type is archived. Archiving an already archived type is a no-op.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Fields:

  • move_to (nullable, integer) — the active leaf type that takes over this type's products. Required when the type has products; the response tells you how many.

Requires permission: product_types.archive

Request

Responses

OK

Response Headers
    Content-Type