Update lead task

You can update an existing lead task.

 

Request Path Parameters
Parameter Type Required Description
org_id number Yes The unique identifier of your organization
id number Yes The unique identifier of the pipeline
task_id number Yes The unique identifier of the task

 

 

Request Body Parameter
Attribute Type Required Description
task_description string Yes Task description
date date Yes
assigned_user number Yes User id
done boolean No

Example Request & Response


$ curl https://api.custerem.com/<org_id>/leads/<id>/tasks/<task_id>/ \
-X PUT \
-H 'Authorization: X-API-KEY <Your API Key>' \
-H 'Content-Type: application/json' \
-d '{
    "task_description": "Call Hayri",
    "date": "2022-02-22",
    "assigned_user": 1,
    "done": true
}'

 

204 No Content

{
    "task_description": "Call Hayri",
    "date": "2022-02-22T00:00:00Z",
    "assigned_user": 1,
    "done": true
}

 

404 Not Found

{
    "status_code": 404,
    "message": "Task with id 4 not found"
}