Returns a list of schedules per person
/schedules/get-by-person/{user_id}
https://api.oauth.pabau.com/{api_key}/schedules/get-by-person/{user_id}
Request
Query Parameters: | |
api_key * | |
user_id * | System id of the user which schedules are requested |
date | Date in format YYYY/MM/DD (returns all shifts in that week) |
Response sample
application/json
{
"success": true,
"total": 3,
"schedules": [
{
"id": "1",
"employee_id": "1",
"user_id": "1",
"user_name": "Test Pabau",
"shift_date": "03/04/2024",
"start_time": "09:00",
"end_time": "15:00",
"location": "2",
"is_holiday": 0
},
{
"id": "2",
"employee_id": "1",
"user_id": "1",
"user_name": "Test Pabau",
"shift_date": "04/04/2024",
"start_time": "09:00",
"end_time": "15:00",
"location": "2",
"is_holiday": 0
},
{
"id": "3",
"employee_id": "1",
"user_id": "1",
"user_name": "Test Pabau",
"shift_date": "05/04/2024",
"start_time": "09:00",
"end_time": "15:00",
"location": "2",
"is_holiday": 0
}
],
"rota_permission": "1"
}