how to relate task to a deal using API?
how to relate task to a deal using API?
I am trying to create a task that will relate to a deal using Restful API, programmatically.
I create a POST request to the endpoint below :
https://www.zohoapis.com/crm/v4/Tasks
and the JSON body was like this
{
"data"
:[
{
"Subject"
:
"Task Test
,
"Owner"
:
5846644000000649648
,
"Priority"
:
"High"
,
"What_Id"
:
5846644000001173255
, // problem in here
"Description"
:
"this is description"
}
]
}
when I create I record using those data, I received this error message
{
"data"
:
[
{
"code"
:
"MANDATORY_NOT_FOUND"
,
"details"
:
{
"api_name"
:
"$se_module"
,
"json_path"
:
"$.data[0].$se_module"
},
"message"
:
"required field not found"
,
"status"
:
"error"
}
]
}
this error occured whenever I add What_id in the JSON body, I put deal_id here. so what is the correct way to relate a task to a deal using API?