Edit a Work Order

Purpose

To update a work order record.

Request URL

https://fsm.zoho.com/fsm/v1/Work_Orders/<record_id>

record_id - The unique ID of the record.

Request Method

PUT

Scope

scope=ZohoFSM.modules.WorkOrders.UPDATE

Input JSON Parameters

NameDescriptionType
$fsm_delete

Set this to true if you want to delete a service or part line item. When you delete a service line item, the part line items associated with it will also be deleted.

Use it within the Service_Line_Items or Part_Line_Items JSON that you want to delete.

Boolean

Sample Request

Copiedcurl --request PUT \
'https://fsm.zoho.com/fsm/v1/Work_Orders/4476553000000109157' \
--header 'Authorization: Zoho-oauthtoken 1000.2xxxxxxx.exxx' \
-d "@updateWO.json"

Sample Input

Copied{
  "data": [
    {
      "Summary": "AC Repair",
      "Priority": null,
      "Service_Line_Items": [
        {
          "Quantity": 2,
          "id": "1439000001414027",
          "Part_Line_Items": [
            {
              "id": "1439000001600252"
            }
          ]
        }
      ]
    }
  ]
}

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2021-11-02T13:36:46-07:00",
                "Modified_By": {
                    "name": "Tracy Pollan",
                    "id": "865000000070001"
                },
                "Created_Time": "2021-09-20T04:41:16-07:00",
                "id": "865000000079093",
                "Created_By": {
                    "name": "Tracy Pollan",
                    "id": "865000000070001"
                }
            },
            "message": "record updated",
            "status": "success"
        }
    ]
}