Examples

POST /api/hosts/980191124/subscriptions/remove_subscriptions
{
  "subscriptions": [
    {
      "id": 128914721,
      "quantity": 3
    }
  ],
  "host_subscription": {
    "subscriptions": [
      {
        "id": 128914721,
        "quantity": 3
      }
    ]
  }
}
204

Params

Param name Description
host_id
required

Id of the host

Validations:

  • Integer

subscriptions
optional

Array of subscriptions to remove

Validations:

  • Must be an Array of nested elements

subscriptions[id]
required

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
optional

If specified, remove the first instance of a subscription with matching id and quantity

Validations:

  • Integer