---
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`

## 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

---

[API](https://skmtc.net/payroll-engine/apis/payroll-engine-backend-api-v1.md) · [All operations](https://skmtc.net/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payroll-engine/payroll-engine-backend-api-v1/versions/34e260deaa2c/schema)
