---
title: "POST /productionWorkSchedule"
method: POST
path: "/productionWorkSchedule"
tags: ["productionWorkSchedule"]
---

# POST /productionWorkSchedule

`POST /productionWorkSchedule`

## Request

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

create a productionWorkSchedule

## Query parameters

- `dryRun` boolean

## Request body

- ProductionWorkSchedule
  - `id` string
  - `version` 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
  - `description` string
  - `lastModifiedDate` integer
  - `status` 'APPROVED' | 'ENTRY_IN_PROGRESS' | 'INVALID', required
  - `workScheduleItems` ProductionWorkScheduleItem[]
    - `id` string
    - `version` string
    - `costCenterId` 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
    - `description` string
    - `lastModifiedDate` integer
    - `multipleHumanOperation` integer, required
    - `multipleMachineOperation` integer, required
    - `positionNumber` integer
    - `productionWorkScheduleId` string
    - `quantityBase` integer
    - `setupTime` string, number, required
    - `shortDescription` string
    - `timeType` 'SINGLE_TIME' | 'TIME_PER_UNIT', required
    - `timeUnit` 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'SECOND' | 'WEEK' | 'YEAR', required
    - `unitTime` string, number, required
    - `validFrom` integer
    - `validTo` integer
  - `workScheduleNumber` string, required

## Response `201`

productionWorkSchedule create response

- ProductionWorkSchedule
  - `id` string
  - `version` 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
  - `description` string
  - `lastModifiedDate` integer
  - `status` 'APPROVED' | 'ENTRY_IN_PROGRESS' | 'INVALID', required
  - `workScheduleItems` ProductionWorkScheduleItem[]
    - `id` string
    - `version` string
    - `costCenterId` 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
    - `description` string
    - `lastModifiedDate` integer
    - `multipleHumanOperation` integer, required
    - `multipleMachineOperation` integer, required
    - `positionNumber` integer
    - `productionWorkScheduleId` string
    - `quantityBase` integer
    - `setupTime` string, number, required
    - `shortDescription` string
    - `timeType` 'SINGLE_TIME' | 'TIME_PER_UNIT', required
    - `timeUnit` 'DAY' | 'HOUR' | 'MINUTE' | 'MONTH' | 'SECOND' | 'WEEK' | 'YEAR', required
    - `unitTime` string, number, required
    - `validFrom` integer
    - `validTo` integer
  - `workScheduleNumber` string, required

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-12-03** `cc274ef79dfd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/productionWorkSchedule/post.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)
