Zones

Upsert multiple zone restrictions

Create or update multiple zone restrictions in a single request. Existing restrictions are matched by ID for updates.

post/v1/zone-restrictions/upsert

Request

  • Base URL
    https://api.sandbox.usenash.com
  • Auth
    none declared

Request body

Example request

{
  "zoneRestrictions": [
    {
      "externalId": "zone_01234567890123456789",
      "restrictionMetadata": {
        "key": "value"
      }
    }
  ]
}

Response

OK

Example response

{
  "zoneRestrictions": [
    {
      "id": "res_01234567890123456789",
      "externalId": "ext_01234567890123456789",
      "name": "Zone Restriction 1",
      "isActive": true,
      "restrictionMetadata": {
        "restriction_metadata": {
          "key": "value"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.