> ## Documentation Index
> Fetch the complete documentation index at: https://tyk.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Approve a guardrail exception

> Approves a proposed exception (full administrators only). content_hash must be the content_hash of the exception as reviewed; an exception that changed since is refused with 409.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml post /apps/{id}/guardrail-exceptions/{eid}/approve
openapi: 3.0.1
info:
  title: Midsommar API
  description: This is the API for the Midsommar user and group management system.
  termsOfService: http://swagger.io/terms/
  contact:
    name: API Support
    url: http://www.swagger.io/support
    email: support@swagger.io
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: //localhost:8080/api/v1
security: []
paths:
  /apps/{id}/guardrail-exceptions/{eid}/approve:
    post:
      tags:
        - apps
      summary: Approve a guardrail exception
      description: >-
        Approves a proposed exception (full administrators only). content_hash
        must be the content_hash of the exception as reviewed; an exception that
        changed since is refused with 409.
      parameters:
        - name: id
          in: path
          description: App ID
          required: true
          schema:
            type: integer
        - name: eid
          in: path
          description: Exception ID
          required: true
          schema:
            type: integer
      requestBody:
        description: Reviewed content hash
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.GuardrailExceptionApproveInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.GuardrailExceptionResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.GuardrailExceptionApproveInput:
      type: object
      properties:
        content_hash:
          type: string
          description: |-
            ContentHash is the content_hash of the exception the administrator
            reviewed, as the API returned it. Required.
    api.GuardrailExceptionResponse:
      type: object
      properties:
        action:
          type: string
        alert_event:
          type: string
          description: AlertEvent names the event the alert action raises.
        app_id:
          type: integer
        approved_at:
          type: string
        approved_by:
          type: integer
        channel:
          type: string
        content_hash:
          type: string
          description: >-
            ContentHash identifies the reviewed content; approving takes it
            back.
        created_at:
          type: string
        detector:
          type: string
        expires_after_days:
          type: integer
        filter_id:
          type: integer
        hit_count:
          type: integer
        id:
          type: integer
        justification:
          type: string
        last_hit_at:
          type: string
        proposed_by:
          type: integer
        source_event:
          type: integer
        status:
          type: string
        tool_name:
          type: string
        updated_at:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````