Zones

Upsert multiple zone restrictions

Changed on

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

post/v1/zone-restrictions/upsert

Request

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