Create an Asset

Purpose

To insert a new asset record.

Request URL

https://fsm.zoho.com/fsm/v1/Assets

Request Method

POST

Scope

scope=ZohoFSM.modules.Assets.CREATE

Input JSON Keys

NameDescriptionTypeMandatory
NameThe name of the assetStringYes
ProductThe ID of the part to which you want to associate the assetStringYes
If it is set as mandatory in the Assets module within the Module Builder (Setup > Customization > Module and Fields). 
Contact*The ID of the contact to which you want to associate the assetStringYes
Company*The ID of the company to which you want to associate the assetStringYes

*This field will be mandatory depending on the sync type for the FSM-Invoice/Books integration

Sample Request

Copiedcurl --request POST 'https://fsm.zoho.com/fsm/v1/Assets' \
--header 'Authorization: Zoho-oauthtoken 1000.26xxxxxxxxxx.xxxxxxxxxx0' \
--header 'content-type: application/json' \
--data "@newAsset.json"

Sample Input

Copied{
    "data": [
        {
            "Name": "5 Ton 5 Star Split AC",
            "Product": "1439000000611088",
            "Contact": "1439000000504117"
        }
    ]
}

Sample Response

Copied{
    "data": [
        {
            "Name": "5 Ton 5 Star Split AC",
            "Product": "1439000000611088",
            "Contact": "1439000000504117"
        }
    ]
}

{
    "result": "success",
    "code": "SUCCESS",
    "data": {
        "Assets": [
            {
                "UID": "Assets_0",
                "Modified_Time": "2023-10-20T15:08:52+05:30",
                "Modified_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                },
                "Created_Time": "2023-10-20T15:08:52+05:30",
                "id": "1439000000724006",
                "Created_By": {
                    "name": "Mary Cooper",
                    "id": "1439000000161001"
                },
                "TabName": "Assets"
            }
        ]
    },
    "status": "success"
}