Update Single
POST/api/employee/71
Endpoint Description
This API endpoint allows you to update employee information in the system. By sending a POST request to https://app.udyogx.in/api/employee/70
, you can modify the details of a specific employee identified by their ID.
Request Parameters
The request body should be in JSON format and include the following parameters:
- path (string): The path indicating the operation to be performed, in this case, it is set to
"employee/entry/update"
. - pg (string): The page or form associated with the employee entry, here it is set to
"form/employee/entry"
. - employee_name (string): The name of the employee whose information is being updated.
Expected Response
Upon a successful request, the API will return a JSON response with the following structure:
- data (array): An array containing the details of the employee. Each employee object may include the following fields:
employee_id
: Unique identifier for the employee.datetime
: Timestamp of the entry.employee_type
: Type of employee (e.g., full-time, part-time).session
: Current session details.employee_name
: Name of the employee.- Additional fields related to personal and professional details such as
gender
,dob
,qualifications
,bank information
, and more.
- message (string): A message related to the operation, which may provide additional context.
- status (integer): Status code of the response, where
0
typically indicates a successful operation.
Notes
- Ensure that the employee ID in the URL is correct and corresponds to an existing employee in the system.
- The response will include a variety of fields, many of which may be empty or null if not applicable or not provided during the update.
- Always check the status code to confirm the success of the operation before proceeding with further actions.
Request
Responses
- 200