> ## 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.

# Set an app's guardrail capability

> Attests what the app can do (read_only, read_tools or acting; "" clears it). Full administrators only.



## OpenAPI

````yaml /swagger/5.16/ai-studio-swagger.yml put /apps/{id}/guardrail-capability
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-capability:
    put:
      tags:
        - apps
      summary: Set an app's guardrail capability
      description: >-
        Attests what the app can do (read_only, read_tools or acting; "" clears
        it). Full administrators only.
      parameters:
        - name: id
          in: path
          description: App ID
          required: true
          schema:
            type: integer
      requestBody:
        description: Capability
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/api.AppGuardrailCapabilityInput'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/api.AppGuardrailCapabilityResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    api.AppGuardrailCapabilityInput:
      type: object
      properties:
        value:
          type: string
          description: Value is read_only, read_tools or acting; "" clears the attestation.
    api.AppGuardrailCapabilityResponse:
      type: object
      properties:
        effective:
          type: string
          description: >-
            Effective is the capability the guardrail floors apply ("" is
            acting).
        guardrails_apply:
          type: boolean
          description: >-
            GuardrailsApply is true when a guardrail filter is attached to one
            of

            the App's LLMs: only then does a resource change by someone who is
            not

            a full administrator clear the attestation visibly.
        reasons:
          type: array
          items:
            type: string
        reset_at:
          type: string
        reset_by:
          type: integer
          description: >-
            ResetBy and ResetAt record the last visible reset of the attestation

            after a resource change (ResetBy null when no user is known, such as
            a

            plugin); both null once the capability is attested again.
        suggestion:
          type: string
        value:
          type: string
          description: >-
            Value is the attested capability: read_only, read_tools, acting, or
            ""

            when nobody has attested one (treated as acting).
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````