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

# Revert one item to an earlier point in its history

> Returns the item to its state right after the given history entry. By default creates a new branch off this branch carrying the revert, to review and merge; with in_place the revert is written straight onto this branch, subject to the same checks as any edit. The original history is untouched either way.



## OpenAPI

````yaml /openapi/customer-api.json post /project/{projectId}/branch/{id}/revert-entity-to-point
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Flow customer API reference. Start with the [quickstart](/api/quickstart)
    and [authentication guide](/api/authentication).
  title: Customer API
  version: 1.0.0
servers:
  - description: Flow API
    url: '{baseUrl}'
    variables:
      baseUrl:
        default: https://backend.branch.flowengineering.com
security: []
tags:
  - name: Automations
  - name: Branches
  - name: Comments
  - name: Convert
  - name: Data Model
  - name: Diagrams
  - name: Entities
  - name: Files
  - name: Import
  - name: Notifications
  - name: Projects
  - name: ReqIF
  - name: ReqIF Import
  - name: Shared Access Grants
  - name: User Groups
  - name: Users
paths:
  /project/{projectId}/branch/{id}/revert-entity-to-point:
    post:
      tags:
        - Branches
      summary: Revert one item to an earlier point in its history
      description: >-
        Returns the item to its state right after the given history entry. By
        default creates a new branch off this branch carrying the revert, to
        review and merge; with in_place the revert is written straight onto this
        branch, subject to the same checks as any edit. The original history is
        untouched either way.
      operationId: BranchController_revertEntityToPoint
      parameters:
        - in: path
          name: projectId
          required: true
          schema:
            description: >-
              Project UUID, not a slug. Resolve a slug with GET
              /project/slug/{slug} using the same workspace and credentials,
              then pass the returned id.
            type: string
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: Workspace identifier
          in: header
          name: customer
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevertEntityToPointDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevertEntityToPointResponseDto'
          description: ''
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    RevertEntityToPointDto:
      properties:
        change_from_seq_id:
          description: >-
            Revert only the change between this sequence id (exclusive) and
            seq_id, keeping later edits to anything that change did not touch.
            Omit to revert the item to its state at seq_id.
          type: string
        entity_id:
          maxLength: 255
          type: string
        in_place:
          description: >-
            Write the revert straight onto this branch instead of proposing a
            new branch to review.
          type: boolean
        seq_id:
          description: >-
            Sequence id of one of the item's history entries on this branch. The
            item is reverted to its state right after that change. 0 reverts it
            to before it existed.
          type: string
      required:
        - entity_id
        - seq_id
      type: object
    RevertEntityToPointResponseDto:
      properties:
        branch_id:
          description: >-
            The branch now carrying the revert: the new branch, or this branch's
            id ('master' for Base) when reverted in place.
          type: string
        created:
          description: True when a new branch was created.
          type: boolean
      required:
        - branch_id
        - created
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.