Skip to main content
PATCH/activities/:id/

Update activity

You can update an existing activity.

AttributesTypeRequiredDescription
idstringyesA unique identifier for the user which is given by User.com automatically.
custom_idstringnoThe unique identifier for the activity which is provided by the client.
activity_typeintegernoA unique identifier of any activity type given by User.com automatically.
assigned_tointegernoA unique identifier for the agent which is given by User.com automatically.
company_idintegernoA unique identifier for the company which is given by User.com automatically.
created_atstringnoA creation date of an activity.
created_byintegernoA unique identifier of an agent who created an activity.
deal_idintegernoA unique identifier for the deal which is given by User.com automatically.
descriptionstringnoA description of the activity.
donebooleannoA flag informing if the activity is finished or not.
done_datestringnoDate when activity was done.
due_datestringnoA date in the future by which the task should be completed. Compliance with ISO 8601 standard format.
durationintegernoA time needed to complete the activity.
namestringyesThe main title of the activity.
updated_atstringnoA date of last activity update.
user_idintegernoA unique identifier for the user which is given by User.com automatically.

Request​

curl -X PATCH -H "Authorization: Token <your_64_char_api_key>" -H "Content-Type: application/json"
-H "Accept: */*; version=2" -d '{
"name": "Updated name",
"description": "updated description" }'
"https://<your_app_subdomain>.user.com/api/public/activities/:id/"

Response​

{
"id": 2695,
"activity_type": 25946,
"name": "Updated name",
"datetime": "2017-07-25T14:14:08.612000Z",
"duration": 15,
"description": "Updated description",
"assigned_to": 5725,
"deal": 2788,
"person": null,
"company": null,
"done": false,
"done_date": null,
"created_by": 5567,
"created_at": "2017-07-14T14:40:01.543675Z",
"updated_at": "2017-07-28T14:52:08.972076Z"
}