POST api/Histories

Create a new History

Request Information

URI Parameters

None.

Body Parameters

History
NameDescriptionTypeAdditional 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": "b6f016d6-195c-4105-8b06-bc9f09a54a69",
  "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-10-13T14:07:44Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "f0d7c060-e6e4-4344-8213-9a5ae31d43fe",
  "EditDate": "2026-10-13T14:07:44Z",
  "CreateDate": "2026-10-13T14:07:44Z",
  "StartTime": "2026-10-13T14:07:44Z",
  "EndTime": "2026-10-13T14:07:44Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "2881d98f-d2f7-434f-a02b-3a275c53f397",
      "666433a9-4e1d-48c4-90d5-598a680eed60"
    ],
    "Companies": [
      "d3aa33a2-5d86-4b7b-a7fd-1720dad8534a",
      "09787124-1fb3-443d-8e07-d2f1b529ab05"
    ],
    "Groups": [
      "e8850d29-afc7-4b7a-9d41-78076b986bd0",
      "34dd9ae1-6028-48a1-acd5-e83b34c533f3"
    ],
    "Opportunities": [
      "ebd97bff-a8a6-4701-a0cd-cbfed06c952e",
      "9d96b0f7-0966-4fd0-a085-0436c85e408d"
    ]
  }
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Id of the new history record

globally unique identifier

Response Formats

application/json, text/json

Sample:
"6141fd16-f44c-4769-b24a-c6c3bf0dca71"