Create or Replace Availability Rule
Creates or replaces the availability rule for a given key. The dimension must be 'tags' or 'vendors'; the key is URL-encoded.
Path parameters
merchant_idinteger · int32Required
dimensionstringRequired
'tags' or 'vendors'
keystringRequired
The tag or vendor name (URL-encoded)
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body
Configurations for the merchants inventory behaviors.
availablebooleanOptionalDefault:
Whether the offer is available for purchase.
falsepublishedbooleanOptionalDefault:
Whether the offer is published and visible.
falseResponses
200
The created or replaced availability rule.
application/json
Configurations for the merchants inventory behaviors.
availablebooleanOptionalDefault:
Whether the offer is available for purchase.
falsepublishedbooleanOptionalDefault:
Whether the offer is published and visible.
falseput/merchants/{merchant_id}/catalog-rules/availability/{dimension}/{key}
200
The created or replaced availability rule.
Last updated
Was this helpful?