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": "13ceceef-4b14-4fbd-b5d3-1825be6f4125",
  "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-08-21T15:29:46Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "6a82f439-ba99-4296-9571-54dab30005cc",
  "EditDate": "2025-08-21T15:29:46Z",
  "CreateDate": "2025-08-21T15:29:46Z",
  "StartTime": "2025-08-21T15:29:46Z",
  "EndTime": "2025-08-21T15:29:46Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "46e1bb43-adc9-4d9a-ba3b-fc4f1ff7367f",
      "9db856c4-5ed8-4b62-ba44-4d45f2c5c849"
    ],
    "Companies": [
      "e6adb363-4f2a-4524-bc04-dd2d8a383fdf",
      "cda166ec-24de-4ac1-8380-5f664cde9906"
    ],
    "Groups": [
      "699f84c3-e40c-4048-8439-66c163d0665e",
      "0109ce82-261d-4a7d-9a14-dee5b15c8ebe"
    ],
    "Opportunities": [
      "af296cd0-1cab-42e5-81ef-5aa949e5403c",
      "490d6feb-850c-40fa-ab5c-5db28505f72c"
    ]
  }
}

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:
"c941596d-0f0f-4e0e-bd87-532fc9e9c1d5"