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

# Restore an Asset to a Revision

> Overwrite the live asset state with the snapshot captured at the specified revision.



## OpenAPI

````yaml /api/openapi.yaml post /v1/assets/{assetTypeName}/{assetId}/revisions/{revisionId}/restore
openapi: 3.0.3
info:
  title: Documentation Service API
  description: API documentation for Documentation Service
  version: 1.0.0
servers:
  - url: https://api.us.lexful.app
    description: US pod
security:
  - bearerAuth: []
    accountId: []
paths:
  /v1/assets/{assetTypeName}/{assetId}/revisions/{revisionId}/restore:
    post:
      tags:
        - Assets
      summary: Restore an Asset to a Revision
      description: >-
        Overwrite the live asset state with the snapshot captured at the
        specified revision.
      parameters:
        - schema:
            type: string
          in: path
          name: assetTypeName
          required: true
          description: Asset type name
        - schema:
            type: string
            format: uuid
          in: path
          name: assetId
          required: true
          description: Asset ID
        - schema:
            type: string
            format: uuid
          in: path
          name: revisionId
          required: true
          description: Revision ID to restore to
      responses:
        '200':
          $ref: '#/components/responses/RestoreAssettoRevisionResponse'
        '400':
          $ref: '#/components/responses/BadRequestResponse'
        '403':
          $ref: '#/components/responses/ForbiddenResponse'
        '404':
          $ref: '#/components/responses/NotFoundResponse'
        '500':
          $ref: '#/components/responses/InternalServerErrorResponse'
components:
  responses:
    RestoreAssettoRevisionResponse:
      description: Default Response
      content:
        application/json:
          schema:
            $ref: >-
              #/components/schemas/RestoreAssettoRevisionResponse_application_json
    BadRequestResponse:
      description: Bad request - validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    ForbiddenResponse:
      description: Forbidden - insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFoundResponse:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerErrorResponse:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    RestoreAssettoRevisionResponse_application_json:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/RestoreAssettoRevisionResponse_application_json_data
        skipped:
          type: array
          items:
            type: string
          description: >-
            Property names present in the revision but no longer in the entity
            type schema; not restored.
        id:
          type: string
          format: uuid
          description: >-
            ID of the new revision created by this restore. Clients can use it
            to navigate to the post-restore state.
      required:
        - data
        - skipped
        - id
    ErrorResponse:
      description: Bad request - validation error
      type: object
      properties:
        status:
          type: number
          description: HTTP status code
        message:
          type: string
          description: Error message
        error_id:
          type: string
          description: Unique error identifier
        error_code:
          type: string
          description: Error code
        developer_message:
          type: string
          description: Additional details for developers
    RestoreAssettoRevisionResponse_application_json_data:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Asset unique identifier
        organization_id:
          type: string
          format: uuid
          description: Organization ID
        organization_name:
          type: string
          description: Organization name
        visibility:
          type: string
          enum:
            - inherit
            - private
            - restricted
          description: Asset visibility setting
        owned_by:
          type: string
          format: uuid
          description: User ID of asset owner
        tags:
          type: array
          description: Expanded tags (only present when expand=tags is used)
          items:
            $ref: >-
              #/components/schemas/RestoreAssettoRevisionResponse_application_json_data_tags_items
        references:
          type: object
          additionalProperties: true
          description: Asset references (IDs or expanded assets)
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        deleted_at:
          type: string
          nullable: true
          format: date-time
          description: Deletion timestamp
        created_by:
          type: string
          description: User ID who created
        updated_by:
          type: string
          description: User ID who last updated
      additionalProperties: true
      description: >-
        Asset with dynamic properties from asset type definition spread at root
        level
      example:
        id: 019983a9-c4c0-73af-aec9-463feeadc2e7
        organization_id: 019983a9-c4bf-77da-a35b-5eb177b7b859
        organization_name: Acme Corporation
        visibility: inherit
        owned_by: 019983a9-c4c0-73af-aec9-463feeadc2e7
        name: John Doe
        first_name: John
        last_name: Doe
        title: CTO
        important: true
        contact_type: Decision Maker
        contact_methods:
          - type: Email
            value: john.doe@example.com
          - type: Mobile
            value: +1-555-0123
        preferred_contact_method: Email
        references:
          location: 019983a9-c4c1-7abc-def0-123456789abc
        created_at: '2024-01-15T10:30:00.000Z'
        updated_at: '2024-01-20T14:45:00.000Z'
        created_by: 019983a9-c4c0-73af-aec9-463feeadc2e7
        updated_by: 019983a9-c4c0-73af-aec9-463feeadc2e7
    RestoreAssettoRevisionResponse_application_json_data_tags_items:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Tag ID
        name:
          type: string
          description: Tag name
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token
    accountId:
      type: apiKey
      in: header
      name: X-Account-ID
      description: Account ID

````