Hrm Employee Documents
Function-calling namespace: hrmEmployeeDocuments
- 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.
add
Source: backend/endpoints/hrm-employee-documents/add
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | No | - |
employeeId | string | No | - |
documentName | string | No | - |
documentType | string | No | - |
documentUrl | string | No | - |
remarks | 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": "hrmEmployeeDocuments",
"apiName": "add",
"data": {
"organizationId": "org_123"
}
}'Example Response
{ "status": "ok", "data": {} }delete
Source: backend/endpoints/hrm-employee-documents/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": "hrmEmployeeDocuments",
"apiName": "delete",
"data": {
"organizationId": "org_123",
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }list
Source: backend/endpoints/hrm-employee-documents/list
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
organizationId | string | No | - |
employeeId | 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": "hrmEmployeeDocuments",
"apiName": "list",
"data": {
"organizationId": "org_123"
}
}'Response Data Format
| Field | Type | Required | Constraints |
|---|---|---|---|
items | array<object> | No | - |
Response Data Format Nested Structures
items[] item
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
organizationId | string | No | - |
employeeId | string | No | - |
documentName | string | No | - |
documentType | string | No | - |
documentUrl | string | No | - |
remarks | string | No | - |
isDeleted | boolean | No | - |
deletedAt | integer | No | unix-ms timestamp; nullable |
createdAt | integer | No | unix-ms timestamp |
updatedAt | integer | No | unix-ms timestamp |
Response Data Format Example
{
"items": [
{
"id": "id_123",
"organizationId": "org_123",
"employeeId": "employee_123",
"documentName": "value",
"documentType": "general",
"documentUrl": "value",
"remarks": "value",
"isDeleted": false,
"deletedAt": 1710201600000,
"createdAt": 1710201600000,
"updatedAt": 1710201600000
}
]
}Example Response
{
"status": "ok",
"data": {
"items": [
{
"id": "id_123",
"organizationId": "org_123",
"employeeId": "employee_123",
"documentName": "value",
"documentType": "general",
"documentUrl": "value",
"remarks": "value",
"isDeleted": false,
"deletedAt": 1710201600000,
"createdAt": 1710201600000,
"updatedAt": 1710201600000
}
]
}
}update
Source: backend/endpoints/hrm-employee-documents/update
Input Fields
| Field | Type | Required | Constraints |
|---|---|---|---|
id | string | No | - |
organizationId | string | No | - |
documentName | string | No | - |
documentType | string | No | - |
documentUrl | string | No | - |
remarks | 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": "hrmEmployeeDocuments",
"apiName": "update",
"data": {
"organizationId": "org_123",
"id": "id_123"
}
}'Example Response
{ "status": "ok", "data": {} }