---
updatedAt: 2026-09-01T14:05:24.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/platform-api/llms.txt
---

# Partially update an App

Partially update an App (Access Policy).
All fields are optional — include only what you want to change.

Returns `404` if the App does not exist or is not owned by this customer.

Server-side partial merge — fields are merged atomically. No client-side
read-modify-write cycle.

**`name: ""`  is rejected.** Sending a blank string for `name` returns `400`.
Ignored when `predefinedAppId` is set. Omit `name` entirely to leave it unchanged.

**Full-tunnel restriction:** When `hostnames` contains `"*"` (wildcard — routes all traffic),
`security.riskControls.enabled` must be `false` — returns `400` otherwise.


**Required Permissions:** `ztna:update`

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Jamf ZTNA Public API",
    "version": "1.0.0",
    "description": "Manage ZTNA Gateways, Grouped Gateways, Apps, and Predefined Apps",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement/",
    "contact": {
      "name": "Jamf Developer",
      "url": "https://developer.jamf.com"
    }
  },
  "tags": [
    {
      "name": "apps",
      "description": "Apps (Access Policies in the Jamf Connect UI). Define which hostnames/IPs are routed through ZTNA, which users/groups have access, and which gateway handles the traffic.\n"
    }
  ],
  "paths": {
    "/v1/ztna/apps/{appId}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/appId"
        }
      ],
      "patch": {
        "tags": [
          "apps"
        ],
        "summary": "Partially update an App",
        "description": "Partially update an App (Access Policy).\nAll fields are optional — include only what you want to change.\n\nReturns `404` if the App does not exist or is not owned by this customer.\n\nServer-side partial merge — fields are merged atomically. No client-side\nread-modify-write cycle.\n\n**`name: \"\"`  is rejected.** Sending a blank string for `name` returns `400`.\nIgnored when `predefinedAppId` is set. Omit `name` entirely to leave it unchanged.\n\n**Full-tunnel restriction:** When `hostnames` contains `\"*\"` (wildcard — routes all traffic),\n`security.riskControls.enabled` must be `false` — returns `400` otherwise.\n\n\n**Required Permissions:** `ztna:update`",
        "operationId": "patchApp",
        "x-required-privileges": [
          "ztna:update"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/merge-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AppPatchRequest"
              },
              "example": {
                "name": "Atlassian Cloud (sales) — updated",
                "routing": {
                  "type": "CUSTOM",
                  "gatewayId": "c3d4"
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "App updated."
          },
          "400": {
            "$ref": "#/components/responses/badRequest"
          },
          "404": {
            "description": "App not found or not owned by this customer."
          },
          "409": {
            "$ref": "#/components/responses/conflict"
          },
          "422": {
            "$ref": "#/components/responses/unprocessableEntity"
          },
          "429": {
            "$ref": "#/components/responses/tooManyRequests"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/X-Tenant-Id"
          },
          {
            "$ref": "#/components/parameters/X-Environment-Id"
          }
        ],
        "security": [
          {
            "oauth2": [
              "ztna:update"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "appId": {
        "name": "appId",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "description": "ID of the App (Access Policy). Format: UUID (e.g. `3fa85f64-5717-4562-b3fc-2c963f66afa6`).\n"
      },
      "X-Tenant-Id": {
        "name": "X-Tenant-Id",
        "in": "header",
        "required": false,
        "description": "The tenant UUID identifier. Send it to address tenant scope. This API is also published at environment scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      },
      "X-Environment-Id": {
        "name": "X-Environment-Id",
        "in": "header",
        "required": false,
        "description": "The environment UUID identifier. Send it to address environment scope. This API is also published at tenant scope — send that scope's header instead. Send exactly one scope header per request.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
          "example": "e77c1408-10c8-4007-b177-abc9157fbcaa"
        }
      }
    },
    "responses": {
      "tooManyRequests": {
        "description": "Rate limit exceeded. Retry after the period indicated by `Retry-After`.",
        "headers": {
          "Retry-After": {
            "description": "Number of seconds to wait before retrying.",
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "example": {
              "httpStatus": 429,
              "traceId": "ecf2ca07e23c0abc12393472f2b783df",
              "errors": [
                {
                  "code": "RATE_LIMIT_EXCEEDED",
                  "description": "Too many requests. Retry after the indicated period."
                }
              ]
            }
          }
        }
      },
      "badRequest": {
        "description": "Bad request — validation error. Common codes: `INVALID_FIELD` (schema or constraint violation), `IPSEC_SECRET_CLEAR_NOT_SUPPORTED` (explicit `null` sent for `ipsec.left.secret`), `IPSEC_REMOVAL_NOT_SUPPORTED` (explicit `null` sent for `ipsec` on a gateway that has IPSec configured), `EMPTY_AVAILABILITY_ZONES_NOT_SUPPORTED` (patch empties `availabilityZones` on a gateway that currently has zones).\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "examples": {
              "invalidField": {
                "summary": "Schema validation failure",
                "value": {
                  "httpStatus": 400,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "INVALID_FIELD",
                      "field": "name",
                      "description": "name must not be blank."
                    }
                  ]
                }
              },
              "ipsecSecretClear": {
                "summary": "Attempt to clear IPSec secret",
                "value": {
                  "httpStatus": 400,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "IPSEC_SECRET_CLEAR_NOT_SUPPORTED",
                      "field": "ipsec.left.secret",
                      "description": "The IPSec pre-shared key cannot be cleared. Provide a new value to rotate it, or omit the field to leave it unchanged."
                    }
                  ]
                }
              },
              "ipsecRemoval": {
                "summary": "Attempt to remove IPSec configuration",
                "value": {
                  "httpStatus": 400,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "IPSEC_REMOVAL_NOT_SUPPORTED",
                      "field": "ipsec",
                      "description": "IPSec configuration cannot be removed from a gateway that has it configured."
                    }
                  ]
                }
              },
              "emptyAvailabilityZones": {
                "summary": "Attempt to empty the availability zone list",
                "value": {
                  "httpStatus": 400,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "EMPTY_AVAILABILITY_ZONES_NOT_SUPPORTED",
                      "field": "availabilityZones",
                      "description": "availabilityZones must contain at least one address."
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "unprocessableEntity": {
        "description": "Unprocessable entity — request is syntactically valid but violates a cross-field business constraint. Error codes: `GATEWAY_NOT_FOUND` — a gateway ID in `routing.gatewayId` or `gatewayIds` is not accessible to this customer (applies to Apps and Grouped Gateways; returns 422 rather than 404 because the ID is in the request body, not the path); `SHARED_GATEWAY_MEMBER` — one or more `gatewayIds` refer to shared (Jamf-managed) gateways, which cannot be members of a Grouped Gateway; `MIXED_DEDICATED_IPS_TYPES` — member gateways have mixed `dedicatedIps.enabled` values; `MIXED_TUNNEL_TYPES` — member gateways have mixed tunnel types (some IPSec, some non-IPSec).\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "examples": {
              "gatewayNotFound": {
                "summary": "GATEWAY_NOT_FOUND — grouped gateway (field gatewayIds)",
                "value": {
                  "httpStatus": 422,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAY_NOT_FOUND",
                      "field": "gatewayIds",
                      "description": "A gateway in gatewayIds does not exist or is not accessible to this customer."
                    }
                  ]
                }
              },
              "gatewayNotFoundInApp": {
                "summary": "GATEWAY_NOT_FOUND — app routing (field routing.gatewayId)",
                "value": {
                  "httpStatus": 422,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAY_NOT_FOUND",
                      "field": "routing.gatewayId",
                      "description": "Gateway does not exist or is not accessible to this customer."
                    }
                  ]
                }
              },
              "sharedGatewayMember": {
                "summary": "Shared gateway included as member",
                "value": {
                  "httpStatus": 422,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "SHARED_GATEWAY_MEMBER",
                      "description": "Grouped Gateway members must be dedicated gateways. Remove shared gateways from gatewayIds."
                    }
                  ]
                }
              },
              "mixedDedicatedIpsTypes": {
                "summary": "Mixed dedicatedIps.enabled values",
                "value": {
                  "httpStatus": 422,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "MIXED_DEDICATED_IPS_TYPES",
                      "description": "All member gateways must have the same dedicatedIps.enabled value."
                    }
                  ]
                }
              },
              "mixedTunnelTypes": {
                "summary": "Mixed IPSec and non-IPSec members",
                "value": {
                  "httpStatus": 422,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "MIXED_TUNNEL_TYPES",
                      "description": "All member gateways must have the same tunnel type (all IPSec or all non-IPSec)."
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "conflict": {
        "description": "Conflict — request is valid but cannot be processed due to current state. Common codes: `HOSTNAME_CONFLICT` — hostname already assigned to another App; `BARE_IPS_CONFLICT` — POST/PATCH app: one or more of the provided `bareIps` IP ranges conflict with an existing app (`field: bareIps`); `DEDICATED_IPS_LIMIT` — `dedicatedIps.enabled: true` quota exhausted; `IPSEC_LIMIT` — IPSec egress tunnel limit reached; `TLD_LIMIT_EXCEEDED` — limit on distinct top-level domains exceeded; `MISSING_CATEGORY_NAME` — `categoryName` does not match any category returned by `GET /v1/categories`; `MISSING_SKU2_FOR_RISK_CONTROL` — risk controls require SKU2 entitlement not held by this customer; `MISSING_USER_GROUPS` — one or more assignment group IDs do not exist for this customer; `UNSUPPORTED_BARE_IP_IN_REFERENCED_GATEWAY_IPSEC_CONFIG` — a `bareIps` subnet is not covered by the referenced gateway's IPSec tunnel `right.subnets`; `GATEWAY_REFERENCED_BY_ACCESS_POLICIES` — DELETE gateway: still referenced by one or more Access Policies; `GATEWAY_REFERENCED_BY_GROUPED_GATEWAYS` — DELETE gateway: still a member of one or more grouped gateways; `GATEWAY_REFERENCED_BY_DNS_ZONES` — DELETE gateway: still referenced by one or more Custom DNS Zones; `GROUPED_GATEWAY_REFERENCED_BY_ACCESS_POLICIES` — DELETE grouped-gateway: still referenced by one or more Access Policies; `GROUPED_GATEWAY_REFERENCED_BY_DNS_ZONES` — DELETE grouped-gateway: still referenced by one or more Custom DNS Zones; `CUSTOMERS_REFERENCED_BY_ACCESS_POLICIES` — PATCH gateway or grouped gateway: an unassigned customer is still referenced by one or more Access Policies; `CUSTOMERS_REFERENCED_BY_GROUPED_GATEWAYS` — PATCH gateway: an unassigned customer still uses this gateway via a grouped gateway; `CUSTOMERS_REFERENCED_BY_DNS_ZONES` — PATCH gateway or grouped gateway: an unassigned customer is still referenced by one or more Custom DNS Zones; `CUSTOMERS_FROM_DIFFERENT_ORGANIZATIONS` — PATCH gateway: the provided customers belong to different organizations; only customers from the same organization may be assigned together; `GATEWAYS_TUNNEL_FLAG_MISMATCH` — PATCH grouped-gateway: the combined set of referenced gateways (supplied plus the group's existing members) does not all share the same tunneled flag; distinct from `422 MIXED_TUNNEL_TYPES`, which rejects a supplied `gatewayIds` set that is itself mixed (`field: gatewayIds`); `IPSEC_CONFIG_DUPLICATE` — POST/PATCH gateway: a gateway with the same IPSec configuration already exists (`field: ipsec`); `PREDEFINED_APP_NOT_FOUND` — POST app: `predefinedAppId` does not resolve to an existing predefined app (`field: predefinedAppId`). Returned as `409` (not `422`): the id is checked against existing predefined apps, not the request's shape. `CONFLICT` — generic conflict fallback; emitted for conflict cases not covered by a specific code above (e.g. removing the contact from a dedicated VPN route). Note: inaccessible gateway IDs in request bodies return `422 GATEWAY_NOT_FOUND`, not `409`. An unresolvable `predefinedAppId` is the deliberate exception — it returns `409 PREDEFINED_APP_NOT_FOUND`.\n",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "examples": {
              "hostnameConflict": {
                "summary": "HOSTNAME_CONFLICT",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "HOSTNAME_CONFLICT",
                      "field": "hostnames",
                      "description": "Hostname 'atlassian.com' is already assigned to another App.",
                      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                    }
                  ]
                }
              },
              "bareIpsConflict": {
                "summary": "BARE_IPS_CONFLICT",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "BARE_IPS_CONFLICT",
                      "field": "bareIps",
                      "description": "One or more of the provided IP ranges conflict with an existing app."
                    }
                  ]
                }
              },
              "gatewayReferencedByAccessPolicies": {
                "summary": "GATEWAY_REFERENCED_BY_ACCESS_POLICIES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAY_REFERENCED_BY_ACCESS_POLICIES",
                      "description": "The gateway could not be deleted because it is referenced by one or more Access Policies. Disconnect this gateway from all policies, then try again."
                    }
                  ]
                }
              },
              "gatewayReferencedByGroupedGateways": {
                "summary": "GATEWAY_REFERENCED_BY_GROUPED_GATEWAYS",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAY_REFERENCED_BY_GROUPED_GATEWAYS",
                      "description": "The gateway could not be deleted because it is referenced by one or more grouped gateways. Disconnect this gateway from all grouped gateways, then try again."
                    }
                  ]
                }
              },
              "gatewayReferencedByDnsZones": {
                "summary": "GATEWAY_REFERENCED_BY_DNS_ZONES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAY_REFERENCED_BY_DNS_ZONES",
                      "description": "The gateway could not be deleted because it is referenced by one or more Custom DNS Zones. Disconnect this gateway from all zones, then try again."
                    }
                  ]
                }
              },
              "groupedGatewayReferencedByAccessPolicies": {
                "summary": "GROUPED_GATEWAY_REFERENCED_BY_ACCESS_POLICIES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GROUPED_GATEWAY_REFERENCED_BY_ACCESS_POLICIES",
                      "description": "The grouped gateway could not be deleted because it is referenced by one or more Access Policies. Disconnect this grouped gateway from all policies, then try again."
                    }
                  ]
                }
              },
              "groupedGatewayReferencedByDnsZones": {
                "summary": "GROUPED_GATEWAY_REFERENCED_BY_DNS_ZONES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GROUPED_GATEWAY_REFERENCED_BY_DNS_ZONES",
                      "description": "The grouped gateway could not be deleted because it is referenced by one or more Custom DNS Zones. Disconnect this grouped gateway from all zones, then try again."
                    }
                  ]
                }
              },
              "customersReferencedByAccessPolicies": {
                "summary": "CUSTOMERS_REFERENCED_BY_ACCESS_POLICIES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "CUSTOMERS_REFERENCED_BY_ACCESS_POLICIES",
                      "description": "The gateway or grouped gateway could not be modified because one or more unassigned customers are still referenced by one or more Access Policies. Remove the reference, then try again."
                    }
                  ]
                }
              },
              "customersReferencedByGroupedGateways": {
                "summary": "CUSTOMERS_REFERENCED_BY_GROUPED_GATEWAYS",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "CUSTOMERS_REFERENCED_BY_GROUPED_GATEWAYS",
                      "description": "The gateway could not be modified because one or more unassigned customers are still referenced by one or more grouped gateways. Remove the reference, then try again."
                    }
                  ]
                }
              },
              "customersReferencedByDnsZones": {
                "summary": "CUSTOMERS_REFERENCED_BY_DNS_ZONES",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "CUSTOMERS_REFERENCED_BY_DNS_ZONES",
                      "description": "The gateway or grouped gateway could not be modified because one or more unassigned customers are still referenced by one or more Custom DNS Zones. Remove the reference, then try again."
                    }
                  ]
                }
              },
              "customersFromDifferentOrganizations": {
                "summary": "CUSTOMERS_FROM_DIFFERENT_ORGANIZATIONS",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "CUSTOMERS_FROM_DIFFERENT_ORGANIZATIONS",
                      "description": "The provided customers belong to different organizations. Use only customers from the same organization."
                    }
                  ]
                }
              },
              "gatewaysTunnelFlagMismatch": {
                "summary": "GATEWAYS_TUNNEL_FLAG_MISMATCH",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "GATEWAYS_TUNNEL_FLAG_MISMATCH",
                      "field": "gatewayIds",
                      "description": "The combined set of referenced gateways, including existing members, must all have the same tunneled flag."
                    }
                  ]
                }
              },
              "ipsecConfigDuplicate": {
                "summary": "IPSEC_CONFIG_DUPLICATE",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "IPSEC_CONFIG_DUPLICATE",
                      "field": "ipsec",
                      "description": "A gateway with the same IPSec configuration already exists."
                    }
                  ]
                }
              },
              "predefinedAppNotFound": {
                "summary": "PREDEFINED_APP_NOT_FOUND",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "PREDEFINED_APP_NOT_FOUND",
                      "field": "predefinedAppId",
                      "description": "The predefined app 'atlassian-cloud' does not exist."
                    }
                  ]
                }
              },
              "ipsecLimit": {
                "summary": "IPSEC_LIMIT",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "IPSEC_LIMIT",
                      "description": "The IPSec egress limit has been reached (5 of 5)."
                    }
                  ]
                }
              },
              "tldLimitExceeded": {
                "summary": "TLD_LIMIT_EXCEEDED",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "TLD_LIMIT_EXCEEDED",
                      "description": "The number of distinct top-level domains (10) exceeds the maximum of 8."
                    }
                  ]
                }
              },
              "dedicatedIpsLimit": {
                "summary": "DEDICATED_IPS_LIMIT",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "DEDICATED_IPS_LIMIT",
                      "description": "The dedicated IP address limit has been reached (5 of 5)."
                    }
                  ]
                }
              },
              "missingCategoryName": {
                "summary": "MISSING_CATEGORY_NAME",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "MISSING_CATEGORY_NAME",
                      "description": "Category Web Browsing does not exist."
                    }
                  ]
                }
              },
              "missingUserGroups": {
                "summary": "MISSING_USER_GROUPS",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "MISSING_USER_GROUPS",
                      "description": "User groups [c375d769-0e0e-4cb3-99c0-3dcd5f48a36f, a1b2c3d4-e5f6-7890-abcd-ef1234567890] do not exist."
                    }
                  ]
                }
              },
              "missingSku2ForRiskControl": {
                "summary": "MISSING_SKU2_FOR_RISK_CONTROL",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "MISSING_SKU2_FOR_RISK_CONTROL",
                      "description": "The required component is not enabled for risk-based access control."
                    }
                  ]
                }
              },
              "unsupportedBareIpInReferencedGatewayIpsecConfig": {
                "summary": "UNSUPPORTED_BARE_IP_IN_REFERENCED_GATEWAY_IPSEC_CONFIG",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "UNSUPPORTED_BARE_IP_IN_REFERENCED_GATEWAY_IPSEC_CONFIG",
                      "description": "The referenced gateway's IPSec configuration does not support 10.10.0.0/24."
                    }
                  ]
                }
              },
              "genericConflict": {
                "summary": "CONFLICT",
                "value": {
                  "httpStatus": 409,
                  "traceId": "ecf2ca07e23c0abc12393472f2b783df",
                  "errors": [
                    {
                      "code": "CONFLICT",
                      "description": "The request conflicts with the current state of the resource."
                    }
                  ]
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ApiError": {
        "type": "object",
        "description": "Standard error response body. Returned for all non-2xx responses.\n",
        "required": [
          "httpStatus"
        ],
        "properties": {
          "httpStatus": {
            "type": "integer",
            "minimum": 100,
            "maximum": 599,
            "example": 400
          },
          "traceId": {
            "type": "string",
            "description": "Trace ID for correlating server-side errors. Include this value when reporting issues to Jamf support.\n",
            "example": "ecf2ca07e23c0abc12393472f2b783df"
          },
          "errors": {
            "type": "array",
            "description": "One entry per problem in the request.",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Machine-readable error code.",
                  "example": "INVALID_FIELD"
                },
                "field": {
                  "type": "string",
                  "description": "Name of the field that caused the error, if applicable.",
                  "example": "categoryName"
                },
                "description": {
                  "type": "string",
                  "description": "Human-readable description for debugging. Do not display to end users.",
                  "example": "Value is not a recognized category."
                },
                "id": {
                  "type": "string",
                  "description": "ID of the object with the error, if applicable.",
                  "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
                }
              }
            }
          }
        }
      },
      "AppPatchRequest": {
        "type": "object",
        "description": "Merge-patch body (`application/merge-patch+json`) for partial App update. All fields optional — include only what you want to change.\n",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "New name. Must be non-empty — a blank string returns `400`. Ignored when `predefinedAppId` is set (name is owned by the template). Omit to leave unchanged.\n",
            "example": "Internal CRM"
          },
          "categoryName": {
            "$ref": "#/components/schemas/CategoryName"
          },
          "hostnames": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string"
            },
            "description": "Replaces the full hostname list. Each entry must be a valid domain name, `\"*\"`, or `\"*.domain\"`. Overlapping entries (e.g. `[\"*.example.com\", \"sub.example.com\"]`) return `400`. Specifying the same hostname as another App returns `409`.\n",
            "example": [
              "crm.example.com"
            ]
          },
          "bareIps": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string",
              "pattern": "^(\\d{1,3}\\.){3}\\d{1,3}\\/\\d{1,2}$"
            },
            "description": "Replaces the full bareIps list. IPv4 CIDR subnets (e.g. `192.168.1.0/24`).",
            "example": [
              "192.168.1.0/24"
            ]
          },
          "assignments": {
            "$ref": "#/components/schemas/Assignments"
          },
          "routing": {
            "$ref": "#/components/schemas/Routing"
          },
          "groupOverrides": {
            "$ref": "#/components/schemas/GroupOverrides"
          },
          "security": {
            "$ref": "#/components/schemas/AppSecurity"
          }
        }
      },
      "CategoryName": {
        "type": "string",
        "minLength": 1,
        "description": "App category name. Must exactly match a `displayName` returned by `GET /v1/categories` (e.g. `\"Business & Industry\"`) — that endpoint is the authoritative source. Unknown values return `409 MISSING_CATEGORY_NAME` — the category list is server-owned and may change, so an unrecognized name is a state conflict, not a malformed request.\n"
      },
      "Assignments": {
        "type": "object",
        "description": "User/group assignment rules for an App.",
        "required": [
          "inclusions"
        ],
        "properties": {
          "inclusions": {
            "$ref": "#/components/schemas/AssignmentsInclusions"
          }
        }
      },
      "AssignmentsInclusions": {
        "type": "object",
        "description": "Inclusion rules controlling who can access the App.",
        "required": [
          "allUsers"
        ],
        "properties": {
          "allUsers": {
            "type": "boolean",
            "description": "`true` grants access to all users; `groups` array is then ignored.\n",
            "example": false
          },
          "groups": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "type": "string"
            },
            "description": "Device Group IDs (from the Device Groups API). Used when `allUsers` is `false`. When `allUsers: false`, at least one group ID must be supplied — an empty `groups` array returns `400`.\n",
            "example": [
              "group-001"
            ]
          }
        }
      },
      "Routing": {
        "type": "object",
        "description": "Traffic routing configuration for an App.",
        "required": [
          "type"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "CUSTOM",
              "DIRECT"
            ],
            "description": "`CUSTOM` routes traffic via a ZTNA gateway (`gatewayId` required). `DIRECT` uses default device routing (`gatewayId` must be null/absent). `BLOCK` is not exposed in the public API.\n",
            "example": "CUSTOM"
          },
          "gatewayId": {
            "type": "string",
            "nullable": true,
            "description": "ID of a Gateway or Grouped Gateway. Required when `type=CUSTOM`, must be null/absent when `type=DIRECT`. Gateway IDs are 4-character lowercase hex strings (e.g. `a1b2`); Grouped Gateway IDs are UUIDs (e.g. `3fa85f64-5717-4562-b3fc-2c963f66afa6`).\n",
            "example": "a1b2"
          },
          "dnsIpResolutionType": {
            "type": "string",
            "enum": [
              "IPv4",
              "IPv6"
            ],
            "default": "IPv6",
            "nullable": true,
            "description": "DNS IP resolution preference. Optional. When omitted and `type=CUSTOM`, defaults to `IPv6`. Explicitly set to `IPv4` if your network requires it. **Must be absent (or null) when `type=DIRECT`** — returns `400` if set.\n"
          }
        }
      },
      "GroupOverrides": {
        "type": "object",
        "description": "Per-group routing overrides that take precedence over the App's default routing. Each override's `groupIds` must be a subset of `assignments.inclusions.groups` (or `allUsers: true`); references to unassigned groups return `400`.\n",
        "properties": {
          "routingOverrides": {
            "type": "array",
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/RoutingOverride"
            }
          }
        }
      },
      "RoutingOverride": {
        "type": "object",
        "description": "A routing override applied to a specific subset of assigned groups.",
        "required": [
          "groupIds",
          "routing"
        ],
        "properties": {
          "groupIds": {
            "type": "array",
            "uniqueItems": true,
            "minItems": 1,
            "items": {
              "type": "string"
            },
            "description": "Must be a subset of `assignments.inclusions.groups` (or `allUsers: true`). A group ID may not appear in more than one routing override entry — returns `400` on conflict.\n",
            "example": [
              "group-001"
            ]
          },
          "routing": {
            "$ref": "#/components/schemas/Routing"
          }
        }
      },
      "AppSecurity": {
        "type": "object",
        "description": "Security controls applied to App traffic.",
        "additionalProperties": false,
        "properties": {
          "riskControls": {
            "$ref": "#/components/schemas/RiskControls"
          },
          "deviceManagementBasedAccess": {
            "$ref": "#/components/schemas/DeviceManagementBasedAccess"
          },
          "dohIntegration": {
            "$ref": "#/components/schemas/DohIntegration"
          }
        }
      },
      "RiskControls": {
        "type": "object",
        "description": "Risk-based access controls for the App.",
        "required": [
          "enabled",
          "levelThreshold",
          "notificationsEnabled"
        ],
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Whether risk-based access control is active.",
            "example": true
          },
          "levelThreshold": {
            "type": "string",
            "enum": [
              "LOW",
              "MEDIUM",
              "HIGH"
            ],
            "description": "Minimum risk level that triggers access denial.",
            "example": "MEDIUM"
          },
          "notificationsEnabled": {
            "type": "boolean",
            "description": "Whether to notify users when access is blocked by risk controls.",
            "example": true
          }
        }
      },
      "DeviceManagementBasedAccess": {
        "type": "object",
        "description": "Device management enrollment-based access control.",
        "required": [
          "enabled",
          "notificationsEnabled"
        ],
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Whether device management enrollment is required for access.",
            "example": true
          },
          "notificationsEnabled": {
            "type": "boolean",
            "description": "Whether to notify users when access is blocked due to unenrolled device.",
            "example": true
          }
        }
      },
      "DohIntegration": {
        "type": "object",
        "description": "DNS-over-HTTPS integration settings for the App.",
        "required": [
          "blocking",
          "notificationsEnabled"
        ],
        "properties": {
          "blocking": {
            "type": "boolean",
            "description": "Whether DoH traffic is blocked for this App.",
            "example": false
          },
          "notificationsEnabled": {
            "type": "boolean",
            "description": "Whether to notify users when DoH traffic is blocked.",
            "example": true
          }
        }
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "description": "Obtain an access token by calling the API Gateway's token endpoint using the OAuth2 client-credentials flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{region}.api.jamfcloud.com/auth/token",
            "scopes": {
              "ztna:create": "",
              "ztna:delete": "",
              "ztna:read": "",
              "ztna:update": ""
            }
          }
        }
      }
    }
  },
  "x-scope-types": [
    "tenant",
    "environment"
  ],
  "servers": [
    {
      "url": "https://{region}.api.jamfcloud.com/securitycloud",
      "description": "Jamf Beta API Gateway - prod",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "us",
            "eu",
            "apac"
          ],
          "description": "Geographic deployment region"
        }
      }
    }
  ],
  "security": [
    {
      "oauth2": []
    }
  ]
}
```