Add Parts to a Service of a Work Order

Purpose

To add parts to a service of a work order.

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

Sample Request

Copiedcurl --request PUT \
'https://fsm.zoho.com/fsm/v1/Work_Orders/4476553000000109157' \
--header 'Authorization: Zoho-oauthtoken 1000.26xxxxx.exxxxx' \
-d "@associatingPartToServiceofWO.json"

Sample Input

Copied{
    "data": [
        {
            "Service_Line_Items": [
                {
                    "id": "1011000000222466",
                    "Part_Line_Items": [
                        {
                            "Part": "1011000000141120",
                            "Description": null,
                            "Service_Line_Item": "1011000000222466",
                            "Quantity": 1,
                            "Unit": "Each",
                            "List_Price": 9.75,
                            "Amount": 9.75,
                            "Discount": 0,
                            "Sequence": 2,
                            "Tax": {
                                "Tax_Name": "IllinoisTax",
                                "Tax_Exemption_Code": null,
                                "Tax_Id": "2908070000000091001",
                                "Tax_Percentage": 6.25,
                                "Tax_Exemption_Id": null
                            },
                            "Line_Item_Amount": 10.36,
                            "Discount_Type": "Currency"
                        }
                    ]
                }
            ]
        }
    ]
}

Sample Response

Copied{
    "data": [
        {
            "code": "SUCCESS",
            "details": {
                "Modified_Time": "2022-03-08T00:06:11-08:00",
                "Modified_By": {
                    "name": "Daniel Warne",
                    "id": "1011000000139001"
                },
                "Created_Time": "2022-03-07T05:48:55-08:00",
                "id": "1011000000222119",
                "Created_By": {
                    "name": "Daniel Warne",
                    "id": "1011000000139001"
                }
            },
            "message": "record updated",
            "status": "success"
        }
    ]
}