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

# Queue deployment apply run



## OpenAPI

````yaml api-reference/openapi.yaml post /deployments/apply
openapi: 3.1.0
info:
  title: Minenet Client API
  version: 1.0.0
  description: >
    Team-scoped API for deployments, servers, snapshots, files, and mod platform
    metadata.


    Authentication:

    - Bearer user token (`mnp_*`)

    - Bearer agent token (`mna_*`)


    Global rate limit: 100 requests/minute per token.
servers:
  - url: https://your-domain.com/api/client/v1
security:
  - bearerAuth: []
tags:
  - name: Deployments
  - name: Servers
  - name: Snapshots
  - name: Files
  - name: Modrinth
  - name: CurseForge
paths:
  /deployments/apply:
    post:
      tags:
        - Deployments
      summary: Queue deployment apply run
      operationId: queueDeploymentApply
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - configuration_id
              properties:
                configuration_id:
                  type: string
                idempotency_key:
                  type: string
                  minLength: 1
                  maxLength: 128
      responses:
        '202':
          description: Queued
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  run:
                    type: object
                    properties:
                      id:
                        type: string
                      status:
                        type: string
                      configuration_id:
                        type: string
                      configuration_version_id:
                        oneOf:
                          - type: string
                          - type: 'null'
                      configuration_version_number:
                        oneOf:
                          - type: integer
                          - type: 'null'
                      resource_count:
                        type: integer
                      queue_position:
                        oneOf:
                          - type: integer
                          - type: 'null'
                      created_at:
                        type: integer
                      server_count:
                        type: integer
                      proxy_count:
                        type: integer
                      swiftbase_count:
                        type: integer
        '402':
          description: Subscription/limits failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Configuration has no pushed version
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
  responses:
    NotFound:
      description: Resource not found or unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: token

````