Company Shift
Updates an existing shift record by ID. Only provided fields will be updated.
Shift ID
Shift update data
Start time of the shift
09:00End time of the shift
17:00Days of the week when the shift applies. Values: 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday
[1,2,3,4,5]Shift updated successfully
No content
Invalid request data
Shift not found
PUT /api/v1/company/shift/{shiftId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"startTime": "09:00",
"endTime": "17:00",
"weekDays": [
1,
2,
3,
4,
5
]
}No content
Creates a new shift record for an employee. A shift defines working hours and days of the week when the employee should work.
Company ID
Employee ID
Shift creation data
Start time of the shift
09:00End time of the shift
17:00Days of the week when the shift applies. Values: 1=Monday, 2=Tuesday, 3=Wednesday, 4=Thursday, 5=Friday, 6=Saturday, 7=Sunday
[1,2,3,4,5]Shift created successfully
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6Invalid request data
POST /api/v1/company/shift/{companyId}/user/{employeeId} HTTP/1.1
Host: api.happyforce.com
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"startTime": "09:00",
"endTime": "17:00",
"weekDays": [
1,
2,
3,
4,
5
]
}{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
"employeeId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "text",
"endTime": "text",
"weekDays": [
1
]
}Retrieves all shift records for a company. Supports pagination.
Company ID
Starting index for pagination (default: 0)
0Ending index for pagination (default: 10)
10Successfully retrieved shifts
64f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b664f8a0e2d5b7c9a1e3f4a5b6GET /api/v1/company/shift/{companyId} HTTP/1.1
Host: api.happyforce.com
Accept: */*
Successfully retrieved shifts
{
"id": "64f8a0e2d5b7c9a1e3f4a5b6",
"companyId": "64f8a0e2d5b7c9a1e3f4a5b6",
"employeeId": "64f8a0e2d5b7c9a1e3f4a5b6",
"startTime": "text",
"endTime": "text",
"weekDays": [
1
]
}Last updated