Update Attendance
PUT/api/attendance/{id}
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Attendance record unique ID |
| out_time | string | optional Optional Clock-out time |
| status | string | optional Optional Status (pending, approved, rejected) |
| note | string | optional Optional Note |
curl -X PUT "https://yoursite.com/api/attendance/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "field": "value" }' Success-Response:
HTTP/1.1 200 OK
{
"status": 200,
"messages": {"success": "Attendance update success"}
}