---
title: "UpdateAIGatewayPolicyRequest"
url: "https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3/schemas/UpdateAIGatewayPolicyRequest"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-ai-gateway-dev-0/versions/eaabd2fa-a9d5-44cc-b086-e210c9c21bf3.md

# UpdateAIGatewayPolicyRequest

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Konnect AI Gateway
  version: 0.0.0
servers:
  - url: https://us.api.konghq.com/v1
    description: United-States Production region
  - url: https://eu.api.konghq.com/v1
    description: Europe Production region
  - url: https://au.api.konghq.com/v1
    description: Australia Production region
  - url: https://me.api.konghq.com/v1
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v1
    description: India Production region
  - url: https://sg.api.konghq.com/v1
    description: Singapore Production region
components:
  schemas:
    PublicLabels:
      description: >
        Public labels store information about an entity that can be used for
        filtering a list of objects.


        Public labels are intended to store **PUBLIC** metadata. 


        Keys must be of length 1-63 characters, and cannot start with "kong",
        "konnect", "mesh", "kic", or "_".
      type: object
      example:
        category: finance
      additionalProperties:
        type: string
        pattern: ^[a-z0-9A-Z]{1}([a-z0-9A-Z-._]*[a-z0-9A-Z]+)?$
        minLength: 1
        maxLength: 63
      maxProperties: 50
      title: PublicLabels
    AIGatewayManagedBy:
      description: >
        Indicates the managing entities for a resource. A maximum of 5 keys is
        allowed.


        Keys must be 63 characters or less, starting and ending with an
        alphanumeric character,

        and may include dashes (-), underscores (_), and dots (.).


        Values must be non-empty strings of 127 characters or less.


        Keys and values must not contain spaces or control characters, and are
        case-insensitive.
      type: object
      example:
        team: platform
        owner: kong
      additionalProperties:
        type: string
        minLength: 1
        maxLength: 127
      maxProperties: 5
      nullable: true
    UpdateAIGatewayPolicyRequest:
      type: object
      properties:
        display_name:
          description: The display name for this policy instance.
          type: string
          example: My Cool AI PII Sanitizer Policy
        ref:
          description: A user-defined unique identifier for this policy instance, used as
            a stable human-readable reference.
          type: string
          example: ai-pii-sanitizer-1234
        type:
          description: >
            The type of the policy. Some examples are: 'ai-sanitizer',
            'ai-prompt-guard',

            and 'openid-connect'.
          type: string
          example: ai-sanitizer
        enabled:
          description: Whether the policy is enabled.
          type: boolean
          example: true
        config:
          description: Configuration for the policy. The structure varies depending on the
            policy type.
          type: object
          example:
            anonymize:
              - phone
              - creditcard
            stop_on_error: true
          additionalProperties: true
        labels:
          $ref: "#/components/schemas/PublicLabels"
        managed_by:
          $ref: "#/components/schemas/AIGatewayManagedBy"
      additionalProperties: false
      required:
        - display_name
        - ref
        - type
        - enabled
        - config
```
