EndpointsHrm Attendance Policies

Hrm Attendance Policies

Function-calling namespace: hrmAttendancePolicies

  • 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> (or Authorization: Bearer <access_token>).
  • Allowed roles: platform_admin, hr.
  • Missing or invalid token returns 401; authenticated users without an allowed role return 403.

get

Source: backend/endpoints/hrm-attendance-policies/get

Input Fields

FieldTypeRequiredConstraints
organizationIdstringNo-

Example Request

curl -X POST https://api.aivida.in/api \
  -H "Content-Type: application/json" \
  -H "x-stack-access-token: <access_token>" \
  -d '{
  "namespace": "hrmAttendancePolicies",
  "apiName": "get",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

{ "status": "ok", "data": {} }

save

Source: backend/endpoints/hrm-attendance-policies/save

Input Fields

FieldTypeRequiredConstraints
organizationIdstringNo-
lateDeductionTypestringNo-
lateDeductionDurationintegerNo-
deductionAmountnumberNo-
isActivebooleanNonullable

Example Request

curl -X POST https://api.aivida.in/api \
  -H "Content-Type: application/json" \
  -H "x-stack-access-token: <access_token>" \
  -d '{
  "namespace": "hrmAttendancePolicies",
  "apiName": "save",
  "data": {
    "organizationId": "org_123"
  }
}'

Example Response

{ "status": "ok", "data": {} }