Skip to main content
PATCH
/
discounts
/
coupons
/
v1
/
{id}
Update a coupon
curl --request PATCH \
  --url https://api.spacebring.com/discounts/coupons/v1/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "coupon": {
    "limitedItems": {
      "values": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
        }
      ]
    }
  }
}
'
{
  "message": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Headers

spacebring-network-id
string<uuid>

The id of the network. Required when using bearer token authentication

Path Parameters

id
string<uuid>
required

The id of the coupon

Body

application/json
coupon
object
required

Response

No Content