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

# Move all items from one stage to another



## OpenAPI

````yaml /api-reference/openapi/EvoAI-CRM-Service/pipeline-stages.yaml post /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
openapi: 3.0.4
info:
  title: Evolution Foundation - CRM Service - Pipeline Stages
  description: Management of contacts, conversations, inboxes, labels and macros
  version: 1.1.0
servers:
  - url: https://api.evoai.app
    description: Production server
  - url: http://localhost:3000
    description: Development server
    variables:
      port:
        default: '3000'
  - url: '{customUrl}'
    description: Custom server
    variables:
      customUrl:
        default: https://your-instance.com
        description: Enter your server URL
security: []
paths:
  /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations:
    parameters:
      - name: pipeline_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
    post:
      summary: Move all items from one stage to another
      operationId: bulk-move-conversations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - from_stage_id
                - to_stage_id
              properties:
                from_stage_id:
                  type: string
                  format: uuid
                to_stage_id:
                  type: string
                  format: uuid
      responses:
        '200':
          description: Items moved successfully
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                  - meta
                  - message
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      moved_count:
                        type: integer
                        description: Number of items moved
                        example: 5
                  meta:
                    type: object
                    properties:
                      timestamp:
                        type: string
                        format: date-time
                        description: Response timestamp
                        example: '2024-01-15T10:30:00Z'
                  message:
                    type: string
                    example: Items moved successfully
              examples:
                success:
                  value:
                    success: true
                    data:
                      moved_count: 5
                    meta:
                      timestamp: '2024-01-15T10:30:00Z'
                    message: Items moved successfully
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: BAD_REQUEST
                  message: Invalid stage IDs provided
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: UNAUTHORIZED
                  message: Invalid or missing authentication token
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: FORBIDDEN
                  message: You do not have permission to move items
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: NOT_FOUND
                  message: Pipeline stage not found
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: VALIDATION_ERROR
                  message: Validation failed
                  details:
                    from_stage_id:
                      - is required
                    to_stage_id:
                      - is required
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                success: false
                error:
                  code: INTERNAL_SERVER_ERROR
                  message: An unexpected error occurred
                meta:
                  timestamp: '2024-01-15T10:30:00Z'
                  path: >-
                    /api/v1/pipelines/{pipeline_id}/pipeline_stages/{id}/bulk_move_conversations
                  method: POST
      security:
        - userApiKey: []
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - success
        - error
        - meta
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: VALIDATION_ERROR
            message:
              type: string
              example: Validation failed
            details:
              type: object
              additionalProperties: true
              nullable: true
        meta:
          type: object
          required:
            - timestamp
            - path
            - method
          properties:
            timestamp:
              type: string
              format: date-time
              example: '2024-01-15T10:30:00Z'
            path:
              type: string
              example: /public/api/v1/inboxes/{inbox_identifier}/contacts
            method:
              type: string
              example: POST
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token

````

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