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

# Arrange workflow blocks

> Moves blocks into columns by their links, starting from the Start block, with blocks stacked by height. Pass blockIDs to move only those blocks; otherwise every block moves except the Start. Steps, links and names are not changed.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json post /v1/stable/workflow/{workflowID}/arrange
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/workflow/{workflowID}/arrange:
    post:
      tags:
        - Workflow
      summary: Arrange workflow blocks
      description: Moves blocks into columns by their links, starting from the Start
        block, with blocks stacked by height. Pass blockIDs to move only those
        blocks; otherwise every block moves except the Start. Steps, links and
        names are not changed.
      operationId: StableWorkflowController_arrangeBlocks
      parameters:
        - name: workflowID
          required: true
          in: path
          schema:
            type: string
          x-vf-doc:
            description: The ID of the workflow whose blocks to arrange.
          description: The ID of the workflow whose blocks to arrange.
        - name: projectID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the project to operate on.
        - name: environmentAlias
          required: true
          in: query
          schema:
            type: string
            description: The alias of the environment to operate on (e.g. `main`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StableWorkflowArrangeRequest"
      responses:
        "200":
          description: Returns a message and the blocks that moved, each with its new
            position.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableWorkflowArrangeResponse"
          x-vf-doc:
            description: Returns a message and the blocks that moved, each with its new
              position.
      security:
        - token: []
components:
  schemas:
    StableWorkflowArrangeRequest:
      type: object
      properties:
        blockIDs:
          description: Move only these blocks, as a group laid out by the links between
            them. Leave it out to arrange every block from the Start.
          minItems: 1
          maxItems: 50
          type: array
          items:
            type: string
      additionalProperties: false
    StableWorkflowArrangeResponse:
      type: object
      properties:
        message:
          type: string
          description: What was written.
        moved:
          type: array
          items:
            type: object
            properties:
              blockID:
                type: string
              x:
                type: number
              y:
                type: number
            required:
              - blockID
              - x
              - y
          description: Each block that moved, with its new position.
      required:
        - message
        - moved
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
