The Update Object API allows you to update a previously saved object in the Nirvahak system. You must provide a valid savedObjectId, which represents the unique ID of the object to be updated.
This API is commonly used for updating data such as appointments, user details, or custom records, depending on the object schema.
API Request Format
GET https://server.nirvahak.com/studio/jsonp/update/{savedObjectId}
Parameter Breakdown
| Parameter | Type | Required | Description |
| savedObjectId | Path | Yes | The unique identifier of the object to be updated. Example: 6824724b35ce047a87332eac |
Example Request
GET https://server.nirvahak.com/studio/jsonp/update/6824724b35ce047a87332eac
This request initiates the update operation for the object with ID: 6824724b35ce047a87332eac
Success Response (JSONP Format)
{
"status": "success",
"message": "Object updated successfully",
"savedObjectId": "6824724b35ce047a87332eac",
"updatedFields": {
"status": "confirmed",
"date": "2025-07-15"
}
}
Error Response
{
"status": "error",
"message": "Object not found or invalid ID"
}