API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

Create payroll_period

POST/v1/payroll_periods

Create a new payroll_period in the active tenant.

Data model

This operation works on the entity Payroll Period (payroll_period). All 12 fields — type, validation, required status, relationships — are listed in the schema reference.

  • Required fields: employeeProfileId, period, status, ciphertext, iv, alg, keyId
  • Server-managed: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, keyId, lockedAt, lockedBy — the platform assigns these fields; they are discarded in the request.

Example

curl -X POST https://api.codemeta-os.de/v1/payroll_periods \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.payroll_periods.post();

Response codes

HTTP Meaning
200 Default Response

Search