palbaseDocs

Palbase Commerce & Promotions · API

PATCH/promotions/rules/{rule_id}

Update promotion rule

Update promotion rule

Called by your server, with the project's secret key.

Path

rule_idstring · requiredPath parameter rule_id.
curl
curl -X PATCH "https://<your-ref>.palbase.studio/promotions/rules/<rule_id>" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{}'

Responses

200Update promotion rule

defaultStandard Palbase JSON error envelope (`error` and `error_description`).

Operation UpdatePromotionRule of commerce's contract.