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

# POST /workingTimeRule

`POST /workingTimeRule`

## Request

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

create a workingTimeRule

## Query parameters

- `dryRun` boolean

## Request body

- WorkingTimeRule
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `maxDailyWorkDurationInMinutes` integer
  - `maxMonthlyWorkDurationOvertimeInMinutes` integer
  - `name` string, required
  - `workingTimeBreakRules` WorkingTimeBreakRule[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `requiredBreakDurationInMinutes` integer
    - `workDurationInMinutes` integer

## Response `201`

workingTimeRule create response

- WorkingTimeRule
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `maxDailyWorkDurationInMinutes` integer
  - `maxMonthlyWorkDurationOvertimeInMinutes` integer
  - `name` string, required
  - `workingTimeBreakRules` WorkingTimeBreakRule[]
    - `id` string
    - `version` string
    - `createdDate` integer
    - `lastModifiedDate` integer
    - `requiredBreakDurationInMinutes` integer
    - `workDurationInMinutes` integer

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - endpoint added

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