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

# Roll back to a prior revision



## OpenAPI

````yaml /openapi.json post /api/v1/deployments/{name}/rollback
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}/rollback:
    post:
      tags:
        - Revisions
      summary: Roll back to a prior revision
      operationId: rollbackDeployment
      parameters:
        - in: path
          name: name
          required: true
          schema:
            minLength: 1
            type: string
        - description: >-
            Stable key used to adopt the original durable operation after
            retries or disconnects.
          in: header
          name: Idempotency-Key
          required: true
          schema:
            maxLength: 128
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Object'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationEnvelope'
          description: Durable operation accepted
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
          description: Typed API error
      security:
        - bearerAuth: []
components:
  schemas:
    Object:
      additionalProperties: true
      type: object
    OperationEnvelope:
      properties:
        created:
          type: boolean
        operation:
          $ref: '#/components/schemas/Operation'
      required:
        - operation
      type: object
    ErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/Error'
      required:
        - error
      type: object
    Operation:
      properties:
        attempt:
          type: integer
        cancel_requested:
          type: boolean
        created_at:
          format: date-time
          type: string
        error_code:
          type: string
        id:
          type: string
        kind:
          type: string
        max_attempts:
          type: integer
        message:
          type: string
        progress:
          maximum: 100
          minimum: 0
          type: integer
        resource_name:
          type: string
        resource_type:
          type: string
        retryable:
          type: boolean
        status:
          enum:
            - pending
            - leased
            - running
            - waiting
            - cancelling
            - succeeded
            - failed
            - cancelled
          type: string
        updated_at:
          format: date-time
          type: string
      required:
        - id
        - kind
        - status
        - progress
      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

````