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

# Move application to stage

> Move an application to a different pipeline stage within the same job. Optionally set a status and specify the position relative to other applications in the target stage.



## OpenAPI

````yaml /openapi-private.json put /applications/{id}/move
openapi: 3.1.0
info:
  title: Spott API Reference
  version: '0.1'
servers:
  - url: https://api.gospott.com
security: []
tags: []
paths:
  /applications/{id}/move:
    put:
      tags:
        - Applications
      summary: Move application to stage
      description: >-
        Move an application to a different pipeline stage within the same job.
        Optionally set a status and specify the position relative to other
        applications in the target stage.
      operationId: moveApplicationToStage
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MoveApplicationToStageDto'
      responses:
        '204':
          description: Application moved successfully
        '400':
          description: Bad request - missing application ID or stage ID
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ExceptionBaseDto'
                  - type: object
                    properties:
                      statusCode:
                        type: number
                        example: 400
                      message:
                        type: string
                        example: Stage ID is required
                      error:
                        type: string
                        example: Bad Request
        '401':
          description: Unauthorized - invalid or missing authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
        '404':
          description: Application or stage not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
        '500':
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionBaseDto'
      security:
        - x-api-key: []
components:
  schemas:
    MoveApplicationToStageDto:
      type: object
      properties:
        stageId:
          type: string
          minLength: 1
        statusId:
          anyOf:
            - type: string
            - type: 'null'
        position:
          $ref: '#/components/schemas/PositionDto'
      required:
        - stageId
      id: PrivateMoveApplicationToStageDto
    ExceptionBaseDto:
      type: object
      properties:
        status:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        message:
          type: string
        requestId:
          type: string
      required:
        - status
        - message
        - requestId
      id: ExceptionBaseDto
    PositionDto:
      type: object
      properties:
        previousId:
          anyOf:
            - type: string
            - type: 'null'
        nextId:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - previousId
        - nextId
      id: PrivatePositionDto
  securitySchemes:
    x-api-key:
      type: apiKey
      name: x-api-key
      in: header
      description: >-
        API key for authentication. Get your API key from Settings → API Keys in
        your Spott dashboard.

````