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

# Set the persisted guard policy



## OpenAPI

````yaml /openapi.json put /api/v1/deployments/{name}/release-guard/policy
openapi: 3.1.0
info:
  description: >-
    Durable, authenticated control-plane operations. Mutation responses may
    outlive the requesting client.
  title: InferCrane Control API
  version: 2.0.0
servers:
  - description: Local InferCrane API and gateway
    url: http://127.0.0.1:18000
security: []
tags:
  - name: Admission
  - name: Adoption
  - name: Alerts
  - name: Async inference
  - name: Audit
  - name: Autopilot
  - name: Benchmarks
  - name: Burst Guard
  - name: Capacity intelligence
  - name: Context Passport
  - name: Deployments
  - name: Diagnostics
  - name: Endpoints
  - name: External capacity
  - name: FinOps
  - name: Identity
  - name: Inference
  - name: Inference Lab
  - name: Inference decisions
  - name: Infrastructure
  - name: Model artifacts
  - name: Monitoring
  - name: Operations
  - name: Recipes
  - name: Release Guard
  - name: Release evidence
  - name: Replay
  - name: Revisions
  - name: Routing
  - name: Sandboxes
  - name: Scaling
  - name: Secrets
  - name: System
  - name: Targets
  - name: Training lineage
paths:
  /api/v1/deployments/{name}/release-guard/policy:
    put:
      tags:
        - Release Guard
      summary: Set the persisted guard policy
      operationId: setReleaseGuardPolicy
      parameters:
        - in: path
          name: name
          required: true
          schema:
            minLength: 1
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReleaseGuardPolicy'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    ReleaseGuardPolicy:
      additionalProperties: false
      properties:
        auto_rollback_enabled:
          type: boolean
        auto_rollback_window_seconds:
          minimum: 0
          type: integer
        enabled:
          type: boolean
        max_cost_regression_percent:
          minimum: 0
          type: number
        max_error_rate_increase:
          maximum: 1
          minimum: 0
          type: number
        max_latency_regression_percent:
          minimum: 0
          type: number
        max_output_throughput_drop_percent:
          minimum: 0
          type: number
        max_quality_regression_percent:
          maximum: 100
          minimum: 0
          type: number
        max_ttft_regression_percent:
          minimum: 0
          type: number
        minimum_quality_score:
          maximum: 1
          minimum: 0
          type: number
        minimum_requests:
          minimum: 1
          type: integer
        require_compatibility_evidence:
          type: boolean
        require_quality_evidence:
          type: boolean
        require_synthetic_evidence:
          type: boolean
        validation_max_concurrency:
          minimum: 1
          type: integer
        validation_max_requests:
          minimum: 1
          type: integer
      required:
        - enabled
        - minimum_requests
        - require_compatibility_evidence
        - require_synthetic_evidence
        - require_quality_evidence
      type: object
    Object:
      additionalProperties: true
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    Error:
      properties:
        category:
          type: string
        code:
          type: string
        message:
          type: string
        remediation:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````