ERPNext HRMS icon

ERPNext HRMS

Work with ERPNext/Frappe HRMS v15-v16 documents and methods

Attendance → Create

AI-generated

Summary

Create a new Attendance document in ERPNext HRMS by submitting JSON-formatted document data via the selected Frappe API version.

Inputs

  • API Version — Choose between v1 (/api/resource) and v2 (/api/v2/document) Frappe REST API versions for the request.
  • Data JSON (required) — Provide the JSON object containing the fields and values for the new Attendance document to be created.

Output shape

a single JSON object representing the created Attendance document returned by the ERPNext API

The output includes the full document data as returned by ERPNext after creation. Errors will halt execution or be returned in JSON error format if 'Continue On Fail' is enabled.

Examples

Example 1: Create Attendance Record

Set API Version to 'v1' or 'v2'. Enter valid JSON in 'Data JSON' representing the Attendance document fields (e.g., employee, status, check_in, check_out).

Links

Discussion