# Prepare production for a selected section

[All field references](/en/developers/field-reference) · [Shipping](/en/developers/fields-group-shipping)

`POST /v1/dispatches/production-commands`

The current key, the active connection and the current permissions of the key creator are checked again. Exact quantities and versions remain binding. If you get no response, retry with the same arguments and the same key; do not guess a new booking. Creates real pending jobs, does not start any machine and does not bypass Central. Choose one workflow per offered production component; later article changes do not rewrite the frozen quantity.

Required scopes: `"dispatch:production"`.

[How to read these tables](/en/developers/field-reference#reading-the-field-tables)

## Request body

Request body required.

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| idempotency_key | string | Required when parent is present | Not allowed | Client-generated UUID for one intended command. Retry an unchanged command with the same UUID after an unclear outcome. format: `"uuid"`. |
| section_id | string | Required when parent is present | Not allowed | Identifier of the dispatch section; choose a new UUID for planning and retain it for subsequent section actions. format: `"uuid"`. |
| expected_version | integer | Required when parent is present | Not allowed | Current version from the latest read; an outdated version rejects the operation instead of overwriting concurrent changes. exclusiveMinimum: `0`. |
| priority | string | Optional | Not allowed | Processing priority selected for this order or production preparation. Default: `"normal"`. enum: `["low","normal","high","urgent"]`. |
| workflows | array | Required when parent is present | Not allowed | Explicit workflow selection for every offered component requiring production. minItems: `1`. maxItems: `250`. |
| workflows[] | object | Every array item | Not allowed | Additional properties are not allowed. |
| workflows[].line_id | string | Required when parent is present | Not allowed | Identifier of the specific line in the selected delivery, return case or dispatch section. format: `"uuid"`. |
| workflows[].workflow_id | string | Required when parent is present | Not allowed | Identifier of an offered workflow selected to prepare production; does not itself start a machine. format: `"uuid"`. |
| workflows[].component_id | string | Optional | Not allowed | Identifier of the specific component within the relevant order, shipment or dispatch section. format: `"uuid"`. |

## Response 200

200: Success

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | Additional properties are not allowed. |
| data | object | Required when parent is present | Not allowed | Authorized response payload or documented event data. Additional properties are not allowed. |
| data.section_id | string | Required when parent is present | Not allowed | Identifier of the dispatch section; choose a new UUID for planning and retain it for subsequent section actions. format: `"uuid"`. |
| data.production_order_id | string | Required when parent is present | Not allowed | Identifier of the production order created for this dispatch section. format: `"uuid"`. |
| data.job_count | integer | Required when parent is present | Not allowed | Number of production jobs prepared by this command. minimum: `1`. maximum: `250`. |
| data.version | integer | Required when parent is present | Not allowed | Current version of this record; use it unchanged when an operation asks for expected_version. exclusiveMinimum: `0`. |
| data.idempotency_key | string | Required when parent is present | Not allowed | Client-generated UUID for one intended command. Retry an unchanged command with the same UUID after an unclear outcome. format: `"uuid"`. |
| data.created_at | string | Required when parent is present | Not allowed | Time this record was created, including a time-zone offset. format: `"date-time"`. |

## Response 401, 403, 404, 409, 413, 422, 429, 500, 503

401: The key is missing, unknown, revoked or expired. 403: The key lacks a required scope, or the operation requires a live key. 404: Not found. Also applies to IDs that belong to another organization — we deliberately do not distinguish between "does not exist" and "does not belong to you". 409: The same ID already exists with different content. It is never overwritten. 413: The JSON request exceeds 256 KiB. 422: Content validation failed. The response lists all affected locations at once. 429: A rate limit was reached and the request did not run. Wait for Retry-After, then repeat it unchanged. X-RateLimit-Scope names the limit: key (120 requests per minute), organization (300 per minute across all keys), write (1,000 at once, refilling at 60 per minute) or list (300 unfiltered list pages at once, refilling at 10 per minute). 500: Unexpected error on our side. 503: Temporarily unavailable. Repeat the same request with the same business identity.

Content type: `application/json`

| Field | Type | Presence | null | Meaning, limits and examples |
| --- | --- | --- | --- | --- |
| $ (whole value) | object | Whole value | Not allowed | — |
| error | object | Required when parent is present | Not allowed | Machine-readable error code; use it to select the documented recovery path. |
| error.code | string | Required when parent is present | Not allowed | Machine-readable, permanently stable error code. Program against it, not against message. |
| error.message | string | Required when parent is present | Not allowed | Explanation for humans. May change at any time. |
| error.field | string | Optional | Not allowed | Affected location in the request, if it can be determined. |
| error.doc_url | string | Required when parent is present | Not allowed | Documentation link explaining this API error. format: `"uri"`. |
