> ## 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.

# Reorder downstream links of many parents in one request



## OpenAPI

````yaml /openapi/customer-api.json post /project/{projectId}/entities/reorder/batch
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: 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}/entities/reorder/batch:
    post:
      tags:
        - Entities
      summary: Reorder downstream links of many parents in one request
      operationId: EntitiesController_reorderChildrenBatch
      parameters:
        - in: path
          name: projectId
          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/BatchReorderChildrenDto'
        required: true
      responses:
        '204':
          description: Downstream links reordered
        '400':
          description: Invalid op — duplicate parents/children or unlinked child
        '404':
          description: One or more parents not found
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    BatchReorderChildrenDto:
      properties:
        branchId:
          description: Branch ID; applies to the entire batch
          type: string
        ops:
          items:
            $ref: '#/components/schemas/BatchReorderChildrenItemDto'
          type: array
      required:
        - ops
      type: object
    BatchReorderChildrenItemDto:
      properties:
        childIds:
          description: Ordered downstream child IDs
          items:
            type: string
          type: array
        parentId:
          description: Parent entity ID whose children are reordered
          type: string
      required:
        - parentId
        - childIds
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````