Edit a Scheduled Maintenance
Purpose
To update a scheduled maintenance record.
Request URL
https://fsm.zoho.com/fsm/v1/Scheduled_Maintenances
Request Method
PUT
Scope
scope=ZohoFSM.modules.ScheduledMaintenances.UPDATE
Input JSON Keys
Name | Description | Type |
id (Mandatory) | The ID of the scheduled maintenance record you want to update | String |
$delete_work_order_template | Use true to delete the work order template associated with the record | Boolean |
$delete_appointment_template | Use true to delete the service appointment template associated with the record | Boolean |
Sample Request
Copiedcurl --request PUT \
'https://fsm.zoho.com/fsm/v1/Scheduled_Maintenances' \
--header 'Authorization: Zoho-oauthtoken 1000.26xxxxxxxxxx.xxxxxxxxxx0' \
--header 'content-type: application/json' \
--data "@updateSM.json"
Sample Input
Copied{
"data": [
{
"id":"6191000000436084",
"Schedule": {
"Frequency": "Monthly",
"Interval": "1",
"By_Dates": "1,20",
"By_Day": null,
"By_Week": null,
"By_Days": null
},
"Ends":{
"End_Type": "After",
"Ends_After": 10,
"Ends_After_By": "Batch",
"$resetCount": true
}
}
]
}
Sample Response
Copied{
"data": [
{
"code": "SUCCESS",
"details": {
"Modified_Time": "2023-12-20T17:42:16+05:30",
"Modified_By": {
"name": "Diane Lockhart",
"id": "2993000000294001"
},
"Created_Time": "2023-12-20T17:31:55+05:30",
"id": "2993000000321073",
"Created_By": {
"name": "Diane Lockhart",
"id": "2993000000294001"
}
},
"message": "record updated",
"status": "success"
}
]
}