Add or Update Activity
post
[PlatformAddress]/api/1.0/crm?action=addOrUpdateActivity
Add or Update Activity which belongs contact, company, opportunity and lead

Activity Sub Type

Id
Name
1
Meeting
2
Call
3
Email

Example Request

Add Activity

1
{
2
"name": "Test Activity API",
3
"venueId": 1,
4
"subType": 2,
5
"purposerId": 1,
6
"startDateTime": "2020-02-02 01:00:00 UTC",
7
"endDateTime": "2020-02-02 02:00:00 UTC",
8
"assignedUserId": 1,
9
"leadId": 2665
10
}
Copied!

Update Activity

1
{
2
"id": 3269,
3
"venueId": 1,
4
"name": "Test Activity API"
5
}
Copied!

Returns

Property
Description
success
Whether or not the activity was added/updated
id
The unique id of the activity

Throws

Code
Description
Specific Code: 24397
The lead/opportunity does not exist
Specific Code: 24398
The contact does not exist
Specific Code: 24399
The company does not exist
Specific Code: 24400
The activity does not exist
Specific Code: 24401
An error has occurred
Specific Code: 24402
The request contains invalid data. The data was validated but there was some other error. See additional messages
Specific Code: 24403
The request contains invalid data
Specific Code: 24404
The activity can only belongs to either contact, company or opportunity/lead
Activity can only belongs to either company, contact or lead. When companyId and contactId both provided the contactId will be added to company as company contact and activity will be be associated with company.
Last modified 8d ago