DELETE api/activities/clear/{id}?accessorId={accessorId}
Clear an Activity.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Activity Id |
globally unique identifier |
Required |
| accessorId |
Accessor Id |
globally unique identifier |
Required |
Body Parameters
The history record that will be created
History| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
SQL Column Name: [HISTORYID] |
globally unique identifier |
None. |
| Regarding |
SQL Column Name: [REGARDING] |
string |
None. |
| Duration |
SQL Column Name: [DURATION] |
string |
None. |
| OutlookID | string |
None. |
|
| HistoryTypeID |
SQL Column Name: [HISTORYTYPEID] |
integer |
None. |
| HistoryType | HistoryType |
None. |
|
| Attachment | Attachment |
None. |
|
| IsPrivate | boolean |
None. |
|
| ManageUserId | globally unique identifier |
None. |
|
| EditDate |
SQL Column Name: [EDIT_DATE] |
date |
None. |
| CreateDate |
SQL Column Name: [CREATE_DATE] |
date |
None. |
| StartTime |
SQL Column Name: [START_DATE_TIME] |
date |
None. |
| EndTime |
SQL Column Name: [END_DATE_TIME] |
date |
None. |
| Details |
SQL Column Name: [DETAILS] |
string |
None. |
| LinkedEntities | LinkedEntities |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "fb7a54d2-b910-4237-94dc-fa85521192e8",
"Regarding": "sample string 2",
"Duration": "sample string 3",
"OutlookID": "sample string 4",
"HistoryTypeID": 5,
"HistoryType": {
"Name": "sample string 1",
"HistoryTypeId": 2,
"Description": "sample string 3",
"ActivityTypeID": "sample string 4",
"ActivityTypeName": "sample string 5",
"IsActive": true,
"IsCustom": true,
"IsDefault": true,
"IsUserRecordable": true
},
"Attachment": {
"DisplayName": "sample string 1",
"FileSize": 2.1,
"LastModified": "2026-07-01T00:04:49Z",
"FileType": "sample string 4",
"FileExtension": "sample string 5",
"FileName": "sample string 6",
"Personal": true,
"Shortcut": true
},
"IsPrivate": true,
"ManageUserId": "60dc331a-cbc8-4339-807f-215bab3348cd",
"EditDate": "2026-07-01T00:04:49Z",
"CreateDate": "2026-07-01T00:04:49Z",
"StartTime": "2026-07-01T00:04:49Z",
"EndTime": "2026-07-01T00:04:49Z",
"Details": "sample string 12",
"LinkedEntities": {
"Contacts": [
"de1ba0e5-a2a4-44fc-a08b-dd8224475a9f",
"dcd3ef05-2d5c-4f40-b749-970b5b2dac2e"
],
"Companies": [
"888c946b-0d91-4009-830a-101add2f0311",
"853f1ea1-f27b-4aa2-8272-1d895141290d"
],
"Groups": [
"bf668b1f-c114-4d95-8ed7-b8314602744f",
"3a150cc3-388f-4af0-9702-6b27766acb36"
],
"Opportunities": [
"098449fc-f4e8-41fe-b9e2-1b89f5c4b027",
"2b57470e-fe6e-4c4f-9612-fa79b6841261"
]
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns the Id of the history record
globally unique identifierResponse Formats
application/json, text/json
Sample:
"325f70c3-9964-4f76-9a68-fd05234cabf1"