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

# Roll an alias back

> Move `alias` back to the version it pointed at before its most recent move (the newest audit row's from_version). The rollback is itself audited, so rolling back twice returns to the promoted version.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/models/{name}/aliases/{alias}/rollback
openapi: 3.1.0
info:
  title: Veri API
  description: >-
    REST API for the Veri RL post-training platform. All requests require a
    Bearer API key (`vk_` prefix).
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.veri.studio
    description: Production
security: []
tags:
  - name: Training jobs
    description: Create, monitor, and manage training jobs.
  - name: Datasets
    description: Upload and connect training datasets.
  - name: Deployments
    description: Serve trained models and run inference.
  - name: Volumes
    description: Persistent file storage mounted into jobs.
  - name: Models
    description: Custom model registry deployments serve from.
  - name: Regions
    description: Discover available launch regions.
  - name: GPU
    description: Live GPU availability by provider and region.
  - name: Compatibility
    description: Advisory model and runtime compatibility guidance.
  - name: Code artifacts
    description: Upload custom training script bundles.
  - name: Billing
    description: Credit balance and transaction history.
  - name: API keys
    description: Create and revoke API keys.
  - name: Account
    description: The authenticated caller's identity.
  - name: SSH keys
    description: Manage SSH key pairs for compute access.
  - name: Settings
    description: Account-level integrations (Weights & Biases).
  - name: Metrics
    description: Prometheus metrics export for your own observability stack.
paths:
  /v1/models/{name}/aliases/{alias}/rollback:
    post:
      tags:
        - Models
      summary: Roll an alias back
      description: >-
        Move `alias` back to the version it pointed at before its most recent
        move (the newest audit row's from_version). The rollback is itself
        audited, so rolling back twice returns to the promoted version.
      operationId: rollback
      parameters:
        - name: name
          in: path
          description: Lineage name
          required: true
          schema:
            type: string
        - name: alias
          in: path
          description: 'Alias to roll back (default flow: production)'
          required: true
          schema:
            type: string
      requestBody:
        description: Optional reason
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RollbackRequest'
        required: true
      responses:
        '200':
          description: The alias now points at the previous version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AliasMoveResponse'
        '404':
          description: Lineage not found in the caller's workspace
        '409':
          description: The alias has no previous version to roll back to
      security:
        - bearerAuth: []
components:
  schemas:
    RollbackRequest:
      type: object
      properties:
        reason:
          type:
            - string
            - 'null'
          description: Optional reason; defaults to naming the audit row being undone.
    AliasMoveResponse:
      type: object
      description: The result of a promote or rollback.
      required:
        - object
        - model
        - alias
        - to_version
        - version
        - audit
        - fleet_flips_staged
      properties:
        object:
          type: string
          description: Always "model_alias_move".
        model:
          type: string
        alias:
          type: string
        from_version:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            The version the alias pointed at before (absent when the alias was
            created).
        to_version:
          type: integer
          format: int32
        version:
          $ref: '#/components/schemas/ModelVersionResponse'
          description: The version the alias now resolves to.
        audit:
          $ref: '#/components/schemas/ModelAliasAuditResponse'
        fleet_flips_staged:
          type: integer
          description: |-
            Multi-adapter fleets serving this lineage on which a flip to the new
            version was staged (production moves only). The fleet cuts over once
            every replica has the version loaded — no redeploy.
          minimum: 0
    ModelVersionResponse:
      type: object
      description: One version of a lineage (`{name}@v{version}`).
      required:
        - object
        - id
        - model_id
        - model
        - version
        - name
        - artifact_type
        - tags
        - pinned
        - status
        - aliases
        - created_at
      properties:
        object:
          type: string
          description: Always "model_version".
        id:
          type: string
          description: Version id (mv...).
        model_id:
          type: string
          description: Lineage id.
        model:
          type: string
          description: Lineage name.
        version:
          type: integer
          format: int32
          description: Dense, monotonic version number within the lineage.
        name:
          type: string
          description: 'Human handle: "{model}@v{version}".'
        custom_model_id:
          type:
            - string
            - 'null'
          description: |-
            The library model (custom_models row) whose weights this version is;
            deploy or attach by this id.
        artifact_type:
          type: string
          description: '''full'' | ''adapter''.'
        dataset_snapshot_id:
          type:
            - string
            - 'null'
          description: >-
            Dataset snapshot (Task 2) or plain dataset id the version was
            trained on.
        training_job_id:
          type:
            - string
            - 'null'
        parent_version_id:
          type:
            - string
            - 'null'
          description: The version `production` pointed at when this one was registered.
        tags:
          type: array
          items:
            type: string
        pinned:
          type: boolean
          description: Pinned versions are protected from retention.
        pinned_at:
          type:
            - string
            - 'null'
          format: date-time
        status:
          type: string
          description: >-
            'ready' | 'purged' (Task 6, VS-84). A purged version still lists —

            number, tags, audit and scorecards stay — but its weights are
            deleted

            and it can no longer be deployed, attached or promoted.
        purged_at:
          type:
            - string
            - 'null'
          format: date-time
        aliases:
          type: array
          items:
            type: string
          description: Aliases currently pointing at this version.
        created_by:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
    ModelAliasAuditResponse:
      type: object
      description: One audited alias move.
      required:
        - id
        - alias
        - to_version_id
        - actor
        - reason
        - at
      properties:
        id:
          type: string
        alias:
          type: string
        from_version_id:
          type:
            - string
            - 'null'
        from_version:
          type:
            - integer
            - 'null'
          format: int32
        to_version_id:
          type: string
        to_version:
          type:
            - integer
            - 'null'
          format: int32
        actor:
          type: string
          description: Who moved it ("api_key:<id>", "web-proxy", "system:migration").
        reason:
          type: string
        at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: API key with the `vk_` prefix. Create one from the dashboard.

````