Create compensation_record
POST/v1/compensation_records
Create a new compensation_record in the active tenant.
Data model
This operation works on the entity Compensation Record (compensation_record). All 16 fields — type, validation, required status, relationships — are listed in the schema reference.
-
Required fields:
employeeProfileId,kind,status -
Server-managed:
_id,schema,schemaVersion,tenantId,version,createdAt,updatedAt,createdBy,updatedBy,deletedAt,deletedBy,status,approvalRequestId,approverUserId,approvedAt,paidAt— the platform assigns these fields; they are discarded in the request.
Example
curl -X POST https://api.codemeta-os.de/v1/compensation_records \
-H "X-Tenant-Id: $TENANT" \
-b cookies.txtconst result = await cm.compensation_records.post();Response codes
| HTTP | Meaning |
|---|---|
200 |
Default Response |