ShiftRota Documentation
ShiftRota Documentation
ShiftRota Documentation
Once you make request using above curl command, you will receive the response
like below:
{
"result": true,
"message": "Successfully Login",
"data": {
"id": 3,
"company_id": 2,
"department_id": 16,
"department_name": "Management",
"is_admin": true,
"is_hr": false,
"is_face_registered": false,
"name": "Admin",
"email": "admin@demo.com",
"phone": "+880177745",
"avatar": "http://localhost:81/VVR/bymecode/HRM-Regular/public/storage/
public/uploads/user/vMroIMARY6PiUfn16gD3CtIRJNLcK5fXhB2IoGq8.jpg",
"token": "8|7Ud1DoHPlk7JBzF4ji6Y0kij9LWV5OUkGn8tOoPj"
}
}
{
"success": true,
"message": "Data saved successfully",
"data": {
"user_id": "5",
"shift_id": "3",
"workplace_id": "1",
"date": {
"date": "2023-11-30 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Dhaka"
},
"week": "48",
"remarks": "Sample Remarks24",
"updated_at": "2023-11-28T20:11:50.000000Z",
"created_at": "2023-11-28T20:11:50.000000Z",
"id": 30
}
}
**All the parameters are mandatory for this request.
If everything looks good in request, you will receive the response like below:
{
"success": true,
"message": "Data updated successfully",
"data": {
"id": 28,
"user_id": "5",
"shift_id": "3",
"workplace_id": "1",
"remarks": "Sample Remarks24",
"week": "48",
"date": {
"date": "2023-11-29 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Dhaka"
},
"created_at": "2023-11-26T08:39:48.000000Z",
"updated_at": "2023-11-28T20:13:40.000000Z"
}
}
All the parameters are optional here, you may use them to narrow down the results. But, only
user_id is mandatory parameter. You will get JSON response like below if everything is correct
in request:
[
{
"id": 30,
"user_id": 5,
"shift_id": 3,
"workplace_id": 1,
"remarks": "Sample Remarks24",
"week": 48,
"date": "2023-11-30",
"created_at": "2023-11-28T20:11:50.000000Z",
"updated_at": "2023-11-28T20:11:50.000000Z"
}
]