Skip to main content
PATCH
/
subscriptions
/
v1
/
{id}
/
items
/
{itemId}
Update a subscription item
curl --request PATCH \
  --url https://api.spacebring.com/subscriptions/v1/{id}/items/{itemId} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "item": {
    "autoUpdateFromProduct": true,
    "avigilonAltaGroupRef": 123,
    "brivoGroupRef": 123,
    "commitmentCycles": 123,
    "couponRef": "<string>",
    "createDate": "2023-11-07T05:31:56Z",
    "credits": 123,
    "customEnd": true,
    "customStart": true,
    "customTax": {
      "enabled": true,
      "rate": 123
    },
    "dayPasses": 123,
    "discounts": {
      "creditPackages": 123,
      "desks": 123,
      "equipment": 123,
      "events": 123,
      "rooms": 123,
      "shop": 123
    },
    "endDate": "2023-11-07T05:31:56Z",
    "entire": true,
    "exclusiveAccess": {
      "resourceRefs": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "ezeepBlueGroupRef": 123,
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "kisiGroupRef": 123,
    "plan": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>"
    },
    "planRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "price": 123,
    "quantity": 123,
    "resourceRef": "<string>",
    "saltoksAccessGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "startDate": "2023-11-07T05:31:56Z",
    "tapkeyGroupRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "tier": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>"
    },
    "tierRef": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>"
  }
}
'
{
  "message": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

See our authentication documentation for how to authorize your requests

Path Parameters

id
string<uuid>
required

The id of the subscription.

itemId
string<uuid>
required

The id of the subscription item.

Body

application/json
item
object

Response

No Content