ERPNext HRMS icon

ERPNext HRMS

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

Shift Assignment → Update

AI-generated

Summary

Update an existing Shift Assignment document in ERPNext HRMS by specifying its document name and providing the updated data as JSON.

Inputs

  • API Version — Select the Frappe REST API version to use for the request: 'v1' (stable) or 'v2' (Frappe v16). Defaults to 'v1'.
  • Document Name (required) — The identifier (name) of the Shift Assignment document to update.
  • Data JSON (required) — The JSON-formatted payload containing the fields and values to update in the document.

Output shape

a single JSON object representing the updated Shift Assignment document.

The operation returns the full updated document data as a JSON object. Errors during update will throw exceptions unless 'Continue On Fail' is enabled.

Examples

Example 1: Update Shift Assignment 'SA-0001' changing shift start time

Set resource to 'Shift Assignment', operation to 'Update', input 'SA-0001' as Document Name, and provide JSON like {"shift_start": "09:00:00"} as Data JSON.

Links

Discussion