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

# Commit issued draft exactly once

> No body. Header key must equal path key. Rechecks current authority and native source revisions; identical replay returns the existing result. Does not publish.



## OpenAPI

````yaml /api-reference/workforce/openapi.json post /api/v1/workforce/draft-requests/{requestKey}/commit
openapi: 3.1.0
info:
  title: Atlas workforce API
  version: 2026-10-preview
  description: >-
    Authenticated workforce staffing-to-draft operations. Released together with
    matching MCP operations. Deploy the reviewed native guard migrations before
    enabling this feature.
servers:
  - url: /
security:
  - AtlasIntegrationBearer: []
paths:
  /api/v1/workforce/draft-requests/{requestKey}/commit:
    post:
      summary: Commit issued draft exactly once
      description: >-
        No body. Header key must equal path key. Rechecks current authority and
        native source revisions; identical replay returns the existing result.
        Does not publish.
      operationId: commit_draft_schedule
      parameters:
        - name: X-Workspace-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            Selector within saved grants and current issuer authority; never
            grants authority.
        - name: requestKey
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: >-
            Stable native request key. Reuse the exact draft key across REST and
            MCP.
      responses:
        '200':
          description: >-
            Native evidence or exact command result. Unavailable evidence is
            explicitly labeled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DraftCommitResult'
        '400':
          description: Missing or malformed transport fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid or expired bearer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Saved grant or current authority denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Scoped resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Stale source/revision or conflicting request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: Body exceeds 64 KiB
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid or unsupported input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Concurrent compute limit; retry after 5 seconds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Required evidence or service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    DraftCommitResult:
      type: object
      properties:
        request:
          $ref: '#/components/schemas/DraftRequest'
        replayed:
          type: boolean
      required:
        - request
        - replayed
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
            - code
            - message
          additionalProperties: false
      required:
        - error
      additionalProperties: false
    DraftRequest:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspace_id:
          type: string
          format: uuid
        request_key:
          type: string
          format: uuid
        actor_id:
          type: string
          format: uuid
        person_id:
          type: string
          format: uuid
        kind:
          enum:
            - generated
            - rotation
        input:
          type: object
        source_context:
          type: object
          description: Native fenced source snapshot; never replace on retry.
        preparation:
          type: object
          description: >-
            Native bounded candidate and constraint/report evidence; not a
            committed schedule.
        result:
          oneOf:
            - $ref: '#/components/schemas/DraftEffect'
            - type: 'null'
        committed_at:
          type:
            - string
            - 'null'
          format: date-time
        expires_at:
          type: string
          format: date-time
      required:
        - id
        - workspace_id
        - request_key
        - actor_id
        - person_id
        - kind
        - input
        - source_context
        - preparation
        - result
        - committed_at
        - expires_at
      additionalProperties: true
    DraftEffect:
      type: object
      properties:
        scheduleId:
          type: string
          format: uuid
        createdSchedule:
          type: boolean
        native:
          type: object
          properties:
            inserted_shifts:
              type: integer
              minimum: 0
            inserted_activities:
              type: integer
              minimum: 0
          required:
            - inserted_shifts
            - inserted_activities
          additionalProperties: true
        shifts:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              objectRecordId:
                type: string
                format: uuid
              startTs:
                type: string
                format: date-time
              endTs:
                type: string
                format: date-time
            required:
              - id
              - objectRecordId
              - startTs
              - endTs
            additionalProperties: true
      required:
        - scheduleId
        - createdSchedule
        - native
        - shifts
      additionalProperties: true
  securitySchemes:
    AtlasIntegrationBearer:
      type: http
      scheme: bearer
      bearerFormat: atlas_mcp_
      description: >-
        Existing Atlas integration connection with explicit api:connect plus
        appropriate native domain grants. atlas_ingest_ and browser cookies are
        not accepted.

````

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