---
title: "PUT /productionOrder/id/{id}"
method: PUT
path: "/productionOrder/id/{id}"
tags: ["productionOrder"]
---

# PUT /productionOrder/id/{id}

`PUT /productionOrder/id/{id}`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/productionOrder/id/{id}`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/productionOrder/id/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

update productionOrder

## Path parameters

- `id` string, required

## Query parameters

- `dryRun` boolean

## Request body

- ProductionOrder
  - `id` string
  - `version` string
  - `actualEndDate` integer
  - `actualQuantity` string, number
  - `actualStartDate` integer
  - `articleId` string, required
  - `assemblyStoragePlaceId` string
  - `createdDate` integer
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string
  - `lastModifiedDate` integer
  - `pickingInstructions` string
  - `picksComplete` boolean
  - `productionOrderItems` ProductionOrderItem[]
    - `id` string
    - `version` string
    - `actualPickDate` integer
    - `actualQuantity` string, number
    - `articleId` string
    - `createdDate` integer
    - `customAttributes` CustomAttribute[]
      - `attributeDefinitionId` string
      - `booleanValue` boolean
      - `dateValue` integer
      - `entityId` string
      - `entityReferences` EntityReference[]
        - `entityId` string
        - `entityName` string
      - `numberValue` string, number
      - `selectedValueId` string
      - `selectedValues` OnlyId[]
        - `id` string
      - `stringValue` string
    - `lastModifiedDate` integer
    - `note` string
    - `picks` ItemPick[]
      - `id` string
      - `version` string
      - `batchNumber` string
      - `bookedDate` integer
      - `confirmedByUserId` string
      - `confirmedDate` integer
      - `createdDate` integer
      - `customAttributes` CustomAttribute[]
        - `attributeDefinitionId` string
        - `booleanValue` boolean
        - `dateValue` integer
        - `entityId` string
        - `entityReferences` EntityReference[]
          - `entityId` string
          - `entityName` string
        - `numberValue` string, number
        - `selectedValueId` string
        - `selectedValues` OnlyId[]
          - `id` string
        - `stringValue` string
      - `internalTransportReferenceId` string
      - `lastModifiedDate` integer
      - `orderItemId` string
      - `quantity` string, number, required
      - `serialNumbers` string[], required
      - `sourceInternalTransportReferenceId` string
      - `sourceStoragePlaceId` string
      - `storagePlaceId` string, required
      - `transportationOrderId` string
    - `positionNumber` integer
    - `quantity` string, number
    - `targetPickDate` integer
    - `targetQuantity` string, number
  - `productionOrderNumber` string
  - `purchaseOrderItemId` string
  - `salesOrderItemId` string
  - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED', required
  - `statusHistory` ProductionOrderStatusHistory[]
    - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED'
    - `statusDate` integer
    - `userId` string
  - `targetEndDate` integer, required
  - `targetQuantity` string, number, required
  - `targetStartDate` integer, required
  - `warehouseId` string
  - `workItems` ProductionOrderWorkItem[]
    - `id` string
    - `version` string
    - `book` boolean
    - `createdDate` integer
    - `customAttributes` CustomAttribute[]
      - `attributeDefinitionId` string
      - `booleanValue` boolean
      - `dateValue` integer
      - `entityId` string
      - `entityReferences` EntityReference[]
        - `entityId` string
        - `entityName` string
      - `numberValue` string, number
      - `selectedValueId` string
      - `selectedValues` OnlyId[]
        - `id` string
      - `stringValue` string
    - `description` string
    - `lastModifiedDate` integer
    - `manualItem` boolean
    - `positionNumber` integer
    - `shortDescription` string
    - `status` 'BOOKED' | 'CLOSED' | 'OPEN', required
    - `targetEndDate` integer
    - `targetOrderTime` integer
    - `targetStartDate` integer
    - `timeType` 'SINGLE_TIME' | 'TIME_PER_UNIT', required
    - `unitTime` string, number

## Response `200`

productionOrder update response

- ProductionOrder
  - `id` string
  - `version` string
  - `actualEndDate` integer
  - `actualQuantity` string, number
  - `actualStartDate` integer
  - `articleId` string, required
  - `assemblyStoragePlaceId` string
  - `createdDate` integer
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string
  - `lastModifiedDate` integer
  - `pickingInstructions` string
  - `picksComplete` boolean
  - `productionOrderItems` ProductionOrderItem[]
    - `id` string
    - `version` string
    - `actualPickDate` integer
    - `actualQuantity` string, number
    - `articleId` string
    - `createdDate` integer
    - `customAttributes` CustomAttribute[]
      - `attributeDefinitionId` string
      - `booleanValue` boolean
      - `dateValue` integer
      - `entityId` string
      - `entityReferences` EntityReference[]
        - `entityId` string
        - `entityName` string
      - `numberValue` string, number
      - `selectedValueId` string
      - `selectedValues` OnlyId[]
        - `id` string
      - `stringValue` string
    - `lastModifiedDate` integer
    - `note` string
    - `picks` ItemPick[]
      - `id` string
      - `version` string
      - `batchNumber` string
      - `bookedDate` integer
      - `confirmedByUserId` string
      - `confirmedDate` integer
      - `createdDate` integer
      - `customAttributes` CustomAttribute[]
        - `attributeDefinitionId` string
        - `booleanValue` boolean
        - `dateValue` integer
        - `entityId` string
        - `entityReferences` EntityReference[]
          - `entityId` string
          - `entityName` string
        - `numberValue` string, number
        - `selectedValueId` string
        - `selectedValues` OnlyId[]
          - `id` string
        - `stringValue` string
      - `internalTransportReferenceId` string
      - `lastModifiedDate` integer
      - `orderItemId` string
      - `quantity` string, number, required
      - `serialNumbers` string[], required
      - `sourceInternalTransportReferenceId` string
      - `sourceStoragePlaceId` string
      - `storagePlaceId` string, required
      - `transportationOrderId` string
    - `positionNumber` integer
    - `quantity` string, number
    - `targetPickDate` integer
    - `targetQuantity` string, number
  - `productionOrderNumber` string
  - `purchaseOrderItemId` string
  - `salesOrderItemId` string
  - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED', required
  - `statusHistory` ProductionOrderStatusHistory[]
    - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED'
    - `statusDate` integer
    - `userId` string
  - `targetEndDate` integer, required
  - `targetQuantity` string, number, required
  - `targetStartDate` integer, required
  - `warehouseId` string
  - `workItems` ProductionOrderWorkItem[]
    - `id` string
    - `version` string
    - `book` boolean
    - `createdDate` integer
    - `customAttributes` CustomAttribute[]
      - `attributeDefinitionId` string
      - `booleanValue` boolean
      - `dateValue` integer
      - `entityId` string
      - `entityReferences` EntityReference[]
        - `entityId` string
        - `entityName` string
      - `numberValue` string, number
      - `selectedValueId` string
      - `selectedValues` OnlyId[]
        - `id` string
      - `stringValue` string
    - `description` string
    - `lastModifiedDate` integer
    - `manualItem` boolean
    - `positionNumber` integer
    - `shortDescription` string
    - `status` 'BOOKED' | 'CLOSED' | 'OPEN', required
    - `targetEndDate` integer
    - `targetOrderTime` integer
    - `targetStartDate` integer
    - `timeType` 'SINGLE_TIME' | 'TIME_PER_UNIT', required
    - `unitTime` string, number

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/productionOrder/id/:id/put.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
