Zum Hauptinhalt springen
PUT
/
coupons
/
{id}
/
toggle
cURL
curl -X PUT \
 /coupons/{id}/toggle \
 --header "Content-Type: application/json" \
 --header "Authorization: Bearer <token>" \
 --data '{
    "isEnabled": "1"
}'
This response has no body data.

Autorisierungen

Authorization
string
header
erforderlich

Value for the Authorization header parameter.

Pfadparameter

id
string
erforderlich

Coupon identifier

Body

The updated Coupon resource

isEnabled
boolean
Standard:true

Whether this coupon is enabled or not.

Beispiel:

true

Antwort