{
  "opencollection": "1.0.0",
  "info": {
    "name": "BookingEngineApi Account notes Restrictions API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Restrictions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Set restrictions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mews.com/api/connector/v1/restrictions/set",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds new restrictions with the specified conditions. For improved efficiency, multiple similar restrictions will be merged into a single restriction. A quota of 150,000 restrictions per service applies, although it is unlikely to be exceeded because of the merging algorithm. For more information about the merging algorithm, see [Restrictions concepts](https://mews-systems.gitbook.io/connector-api/concepts/restrictions).\r\n\r\nCare is needed to specify `StartUtc` and `EndUtc` in the correct format -"
        },
        {
          "info": {
            "name": "Clear restrictions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mews.com/api/connector/v1/restrictions/clear",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deletes restrictions that exactly match the specified conditions, using a splicing algorithm. This operation is intended to be used alongside [Set restrictions](https://mews-systems.gitbook.io/connector-api/operations/restrictions#set-restrictions). The specified conditions must be met exactly. The time interval, however, does not need to correspond to an existing restriction in the system, instead the API uses a splicing algorithm to work out how to divide up any existing restrictions to meet t"
        },
        {
          "info": {
            "name": "Get all restrictions",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mews.com/api/connector/v1/restrictions/getAll",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Returns all restrictions of the default service provided by the enterprise.\nNote this operation uses [Pagination](https://mews-systems.gitbook.io/connector-api/guidelines/pagination/) and supports [Portfolio Access Tokens](https://mews-systems.gitbook.io/connector-api/concepts/multi-property)."
        }
      ]
    }
  ],
  "bundled": true
}