People Assignment
The people assignment resource.
/peopleAssignmentList people assignments
Retrieve a paginated list of people assignments. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
curl --request GET \
--url 'https://rest.carbon.ms/peopleAssignment?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'[
{
"id": "abc123def456",
"companyId": "xyz789",
"locationId": "xyz789",
"workCenterId": "xyz789",
"employeeId": "xyz789",
"date": "2026-01-01",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z"
}
]/peopleAssignmentRetrieve a people assignment
Fetch a single people assignment by filtering on `id`.
Query parameters
idstringMatch on the people assignment's `id`, e.g. `eq.{id}`.
curl --request GET \
--url 'https://rest.carbon.ms/peopleAssignment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'{
"id": "abc123def456",
"companyId": "xyz789",
"locationId": "xyz789",
"workCenterId": "xyz789",
"employeeId": "xyz789",
"date": "2026-01-01",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z"
}/peopleAssignmentCreate a people assignment
Create a new people assignment.
Body parameters
locationIdstringrequiredReferences location.id
workCenterIdstringrequiredReferences workCenter.id
employeeIdstringrequiredReferences user.id
datedaterequiredshiftIdstringReferences shift.id
notestringovertimeHoursnumberrequiredhoursnumbercurl --request POST \
--url https://rest.carbon.ms/peopleAssignment \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"locationId":"xyz789","workCenterId":"xyz789","employeeId":"xyz789","date":"2026-01-01","overtimeHours":0}'{
"id": "abc123def456",
"companyId": "xyz789",
"locationId": "xyz789",
"workCenterId": "xyz789",
"employeeId": "xyz789",
"date": "2026-01-01",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z"
}/peopleAssignmentUpdate a people assignment
Update an existing people assignment, matched on `id`.
Body parameters
locationIdstringrequiredReferences location.id
workCenterIdstringrequiredReferences workCenter.id
employeeIdstringrequiredReferences user.id
datedaterequiredshiftIdstringReferences shift.id
notestringovertimeHoursnumberrequiredhoursnumbercurl --request PATCH \
--url 'https://rest.carbon.ms/peopleAssignment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"locationId":"xyz789"}'{
"id": "abc123def456",
"companyId": "xyz789",
"locationId": "xyz789",
"workCenterId": "xyz789",
"employeeId": "xyz789",
"date": "2026-01-01",
"createdBy": "string",
"createdAt": "2026-01-01T00:00:00Z"
}/peopleAssignmentDelete a people assignment
Delete a people assignment, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the people assignment to delete, e.g. `eq.{id}`.
curl --request DELETE \
--url 'https://rest.carbon.ms/peopleAssignment?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'