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": "3e8157c1-c046-4027-aff7-8d5c9e191c2e",
  "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": "2025-04-11T07:07:32Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "6b9f3a01-14f1-4e13-898c-23b4517320df",
  "EditDate": "2025-04-11T07:07:32Z",
  "CreateDate": "2025-04-11T07:07:32Z",
  "StartTime": "2025-04-11T07:07:32Z",
  "EndTime": "2025-04-11T07:07:32Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "5416af57-83ae-46f3-8906-cff36aa2af9e",
      "2a61a1cd-1652-4c04-b604-a22309a3111e"
    ],
    "Companies": [
      "77159636-1c12-4f59-9ce2-037cd28d7054",
      "38ce0f32-8cf7-4c8f-b70a-2abc7775fa82"
    ],
    "Groups": [
      "48c5c281-a69a-4902-b4d2-155bf006db24",
      "92fa6c8e-89d2-4a90-aaba-eb761ae2db29"
    ],
    "Opportunities": [
      "b9284664-2166-486a-9a7a-d47647c314b8",
      "f231719a-41e7-45c8-bf6d-b6f0a459ca7d"
    ]
  }
}

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:
"72f67079-da49-4150-8bfa-d0baac2f9389"