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": "a3c99a8b-ffd1-45de-89b9-72cbe01e8fc9",
"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-01-14T05:27:56Z",
"FileType": "sample string 4",
"FileExtension": "sample string 5",
"FileName": "sample string 6",
"Personal": true,
"Shortcut": true
},
"IsPrivate": true,
"ManageUserId": "5968ad99-bf5e-4553-9d3c-f991f2dc1f29",
"EditDate": "2026-01-14T05:27:56Z",
"CreateDate": "2026-01-14T05:27:56Z",
"StartTime": "2026-01-14T05:27:56Z",
"EndTime": "2026-01-14T05:27:56Z",
"Details": "sample string 12",
"LinkedEntities": {
"Contacts": [
"ffd56ee0-8bd9-4ab0-ad99-16cd0ff8cb76",
"bdffdf1f-1f43-4e6d-8b46-639d7e4b3b25"
],
"Companies": [
"e7358e7d-529b-401d-9584-97c2a3ac2d6b",
"c20e42dc-e3b2-40b3-a80a-6f5489f6564b"
],
"Groups": [
"fa926568-8ffb-4bac-a254-5bf6c178168b",
"99ae1e08-f3fc-4d0d-a669-6e0b950baa17"
],
"Opportunities": [
"0e435e90-e2f2-4c44-8ef8-ccfe2c3bb054",
"a2728322-7f9b-405a-94d4-f7d506f5688d"
]
}
}
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:
"65640754-36b4-4040-b001-8d79e401b033"