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

# Roll a role back to a version

> Re-point a role's active version to a prior one (LIVE — holders follow on their
next request). Admin-only; the reserved ``admin`` role has no editable history.
Bumps the version and audits.



## OpenAPI

````yaml /openapi.json post /api/auth/roles/{name}/rollback
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 0.1.1
servers: []
security: []
paths:
  /api/auth/roles/{name}/rollback:
    post:
      tags:
        - access-control
      summary: Roll a role back to a version
      description: >-
        Re-point a role's active version to a prior one (LIVE — holders follow
        on their

        next request). Admin-only; the reserved ``admin`` role has no editable
        history.

        Bumps the version and audits.
      operationId: post_api_auth_roles_name_rollback
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RoleRollback'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data: {}
                required:
                  - data
                type: object
          description: Success.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Malformed request.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    RoleRollback:
      properties:
        version:
          title: Version
          type: integer
      required:
        - version
      title: RoleRollback
      type: object
    Error:
      properties:
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````