Examples

POST /api/hosts/980191068/subscriptions/add_subscriptions
{
  "subscriptions": [
    {
      "id": 128914721,
      "quantity": "1"
    }
  ],
  "host_subscription": {
    "subscriptions": [
      {
        "id": 128914721,
        "quantity": "1"
      }
    ]
  }
}
200
{
  "total": 0,
  "subtotal": 0,
  "selectable": 0,
  "page": 1,
  "per_page": 0,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": []
}

Params

Param name Description
host_id
required

Id of the host

Validations:

  • Integer

subscriptions
required

Array of subscriptions to add

Validations:

  • Must be an Array of nested elements

subscriptions[id]
required

Subscription Pool id

Validations:

  • String

subscriptions[quantity]
required

Quantity of this subscriptions to add

Validations:

  • Must be a number.