Policies

Update a Policy

Updates a Policy.

A Policy is enabled or disabled through the is_disabled field. Disabling a Policy stops it granting access without deleting it.

patch/policies/{id}

Path parameters

idstring required

Policy ID

Request body

Example request

{
  "policy": {
    "conditions": [
      {
        "operator": "is_in_cidr",
        "property": "remote_ip",
        "values": [
          "10.0.0.0/8"
        ]
      }
    ],
    "description": "Updated description"
  }
}

Response

Policy Response

Example response

{
  "data": {
    "conditions": [
      {
        "operator": "is_in",
        "property": "remote_ip_location_region",
        "values": [
          "US",
          "CA"
        ]
      }
    ],
    "description": "Policy to allow something",
    "flow_log_uploads_enabled": true,
    "group_id": "88eae9ce-9179-48c6-8430-770e38dd4775",
    "id": "42a7f82f-831a-4a9d-8f17-c66c2bb6e205",
    "is_disabled": false,
    "resource_id": "a9f60587-793c-46ae-8525-597f43ab2fb1"
  }
}

Changes

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