---
title: "POST /api/tenants/{tenantId}/regulations/{regulationId}/collectors"
method: POST
path: "/api/tenants/{tenantId}/regulations/{regulationId}/collectors"
tags: ["Collectors"]
---

# POST /api/tenants/{tenantId}/regulations/{regulationId}/collectors

`POST /api/tenants/{tenantId}/regulations/{regulationId}/collectors`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/docs/api/tenants/:tenantId/regulations/:regulationId/collectors/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantId` integer, required
- `regulationId` integer, required

## Request body

- Collector
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `collectMode` 'Summary' | 'Minimum' | 'Maximum' | 'Average' | 'Range' | 'Count'
  - `negated` boolean
  - `overrideType` 'Active' | 'Inactive'
  - `valueType` 'String' | 'Boolean' | 'Integer' | 'NumericBoolean' | 'Decimal' | 'DateTime' | 'None' | 'Date' | 'Weekday' | 'Month' | 'Year' | 'Money' | 'Percent' | 'WebResource'
  - `culture` string, nullable
  - `collectorGroups` string[], nullable
  - `threshold` number, double, nullable
  - `minResult` number, double, nullable
  - `maxResult` number, double, nullable
  - `startExpression` string, nullable
  - `applyExpression` string, nullable
  - `endExpression` string, nullable
  - `startActions` string[], nullable
  - `applyActions` string[], nullable
  - `endActions` string[], nullable
  - `attributes` object, nullable
  - `clusters` string[], nullable

## Response `201`

Created

- Collector
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `collectMode` 'Summary' | 'Minimum' | 'Maximum' | 'Average' | 'Range' | 'Count'
  - `negated` boolean
  - `overrideType` 'Active' | 'Inactive'
  - `valueType` 'String' | 'Boolean' | 'Integer' | 'NumericBoolean' | 'Decimal' | 'DateTime' | 'None' | 'Date' | 'Weekday' | 'Month' | 'Year' | 'Money' | 'Percent' | 'WebResource'
  - `culture` string, nullable
  - `collectorGroups` string[], nullable
  - `threshold` number, double, nullable
  - `minResult` number, double, nullable
  - `maxResult` number, double, nullable
  - `startExpression` string, nullable
  - `applyExpression` string, nullable
  - `endExpression` string, nullable
  - `startActions` string[], nullable
  - `applyActions` string[], nullable
  - `endActions` string[], nullable
  - `attributes` object, nullable
  - `clusters` string[], nullable

## Other responses

- `404`: Not Found
- `422`: Unprocessable Content

## Changes

- **2026-03-09** `642427b60b7a`: 76 warning
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/addMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/raiseMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/removeMethod/methodImplementationFlags` response property for the response status `422`
  - …72 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/changes/api/tenants/:tenantId/regulations/:regulationId/collectors/post.md)

---

[API](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1.md) - [All operations](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/revisions/7e8994a2c5bb?raw)
