Hrm Attendance
Function-calling namespace: hrmAttendance
- Base URL:
https://api.aivida.in - Engine endpoint:
POST /api - Auth: private API; Stack access token is required.
- Send token in header:
x-stack-access-token: <access_token>(orAuthorization: Bearer <access_token>). - Allowed roles:
platform_admin,hr. - Missing or invalid token returns
401; authenticated users without an allowed role return403.
create
Source: backend/endpoints/hrm-attendance/create
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | Yes | - |
employeeId | string | Yes | - |
attendanceDate | string | Yes | format: YYYY-MM-DD |
firstCheckIn | string | No | - |
lastCheckOut | string | No | - |
workedMinutes | integer | No | nullable |
lateMinutes | integer | No | nullable |
shiftId | string | No | - |
status | string | Yes | - |
source | string | No | - |
remarks | string | No | - |
approvedBy | string | No | - |
approvedAt | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "create",
"data": {
"organizationId": "org_123",
"employeeId": "employee_123",
"attendanceDate": "2026-03-12",
"status": "scheduled"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/hrm-attendance/delete
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
organizationId | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "delete",
"data": {
"organizationId": "org_123",
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }getById
Source: backend/endpoints/hrm-attendance/get-by-id
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
organizationId | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "getById",
"data": {
"organizationId": "org_123",
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }getSummary
Source: backend/endpoints/hrm-attendance/get-summary
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | No | - |
date | string | No | format: YYYY-MM-DD |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "getSummary",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/hrm-attendance/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | No | - |
date | string | No | format: YYYY-MM-DD |
status | string | No | - |
employeeId | string | No | - |
departmentId | string | No | - |
shiftId | string | No | - |
search | string | No | - |
page | integer | No | - |
limit | integer | No | - |
sortBy | string | No | - |
sortOrder | string | No | - |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "list",
"data": {
"organizationId": "org_123",
"status": "scheduled"
}
}'Response Data Format
| Field | Type | Required | Constraints |
|---|---|---|---|
items | array<object> | No | - |
total | integer | No | - |
page | integer | No | - |
limit | integer | No | - |
totalPages | integer | No | - |
Response Data Format Nested Structures
items[] item
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
employeeId | string | No | - |
employeeCode | string | No | - |
employeeName | string | No | - |
departmentId | string | No | - |
departmentName | string | No | - |
shiftId | string | No | - |
attendanceDate | string | No | format: YYYY-MM-DD |
checkIn | string | No | - |
checkOut | string | No | - |
workedMinutes | integer | No | - |
hoursWorked | string | No | - |
lateMinutes | integer | No | - |
status | string | No | - |
source | string | No | - |
remarks | string | No | - |
Response Data Format Example
{
"items": [
{
"id": "id_123",
"employeeId": "employee_123",
"employeeCode": "value",
"employeeName": "value",
"departmentId": "department_123",
"departmentName": "value",
"shiftId": "shift_123",
"attendanceDate": "2026-03-12",
"checkIn": "value",
"checkOut": "value",
"workedMinutes": 1,
"hoursWorked": "value",
"lateMinutes": 1,
"status": "scheduled",
"source": "value",
"remarks": "value"
}
],
"total": 1,
"page": 1,
"limit": 1,
"totalPages": 1
}Example Response
{
"status": "ok",
"data": {
"items": [
{
"id": "id_123",
"employeeId": "employee_123",
"employeeCode": "value",
"employeeName": "value",
"departmentId": "department_123",
"departmentName": "value",
"shiftId": "shift_123",
"attendanceDate": "2026-03-12",
"checkIn": "value",
"checkOut": "value",
"workedMinutes": 1,
"hoursWorked": "value",
"lateMinutes": 1,
"status": "scheduled",
"source": "value",
"remarks": "value"
}
],
"total": 1,
"page": 1,
"limit": 1,
"totalPages": 1
}
}update
Source: backend/endpoints/hrm-attendance/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
organizationId | string | No | - |
employeeId | string | No | nullable |
attendanceDate | string | No | format: YYYY-MM-DD; nullable |
firstCheckIn | string | No | nullable |
lastCheckOut | string | No | nullable |
workedMinutes | integer | No | nullable |
lateMinutes | integer | No | nullable |
shiftId | string | No | nullable |
status | string | No | nullable |
source | string | No | nullable |
remarks | string | No | nullable |
approvedBy | string | No | nullable |
approvedAt | string | No | nullable |
Example Request
curl -X POST https://api.aivida.in/api \
-H "Content-Type: application/json" \
-H "x-stack-access-token: <access_token>" \
-d '{
"namespace": "hrmAttendance",
"apiName": "update",
"data": {
"organizationId": "org_123",
"id": "id_123",
"status": "scheduled"
}
}'Example Response
{ "status": "ok", "data": {} }