Skip to main content

Update Product Substitution

PUT 

/api/product-substitutions/:substitutionId

Update a substitution rule's substitution_type, mode, flags, priority, active state, or notes.

Required scope: products:write

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

Authentication: Requires Bearer token.

Activating or switching a rule to always re-runs swap-loop detection and is rejected when it would close a loop.

substitution_type (direct | replacement) may be changed here too — it is orthogonal to mode and reclassifying a rule never changes when it swaps.

Request

Responses

OK

Response Headers
    Content-Type