> ## 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 settings profile back to a version

> Re-point the active version to ``version`` (no data copy), making it the
current body. Returns ``{ok: true, version}``. 404 for an absent name or version.
A store-only re-point — the live process is realigned by a later apply, not by
this door.



## OpenAPI

````yaml /openapi.json post /api/config/profiles/{name}/rollback
openapi: 3.1.0
info:
  description: The operator HTTP surface served under /api/*.
  title: tai42-skeleton API
  version: 14.0.2
servers: []
security: []
paths:
  /api/config/profiles/{name}/rollback:
    post:
      tags:
        - config
      summary: Roll a settings profile back to a version
      description: >-
        Re-point the active version to ``version`` (no data copy), making it the

        current body. Returns ``{ok: true, version}``. 404 for an absent name or
        version.

        A store-only re-point — the live process is realigned by a later apply,
        not by

        this door.
      operationId: post_api_config_profiles_name_rollback
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProfileRollback'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    $ref: '#/components/schemas/ProfileWriteResult'
                required:
                  - data
                type: object
          description: Success.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Missing or invalid api key.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Resource not found.
        '501':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error.
      security:
        - ApiKeyAuth: []
components:
  schemas:
    ProfileRollback:
      description: A settings-profile rollback request — the target version to make active.
      properties:
        version:
          title: Version
          type: integer
      required:
        - version
      title: ProfileRollback
      type: object
    ProfileWriteResult:
      description: >-
        A profile write/rollback confirmation — the new active version, never
        the body

        (so a secret never re-emits on the write path).
      properties:
        ok:
          title: Ok
          type: boolean
        version:
          title: Version
          type: integer
      required:
        - ok
        - version
      title: ProfileWriteResult
      type: object
    Error:
      properties:
        code:
          description: >-
            Stable machine-readable reason a client keys a dedicated error state
            on, present on refusals that opt in (e.g. a 501 not-configured
            refusal). Optional: absent when the error carries only a
            human-readable message.
          type: string
        error:
          type: string
      required:
        - error
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````