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": "b2024421-3c7d-40c1-bfd5-41cec7587fd0",
  "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-06-03T07:51:47Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "1acf916a-8380-42de-b270-9ea562abe05a",
  "EditDate": "2025-06-03T07:51:47Z",
  "CreateDate": "2025-06-03T07:51:47Z",
  "StartTime": "2025-06-03T07:51:47Z",
  "EndTime": "2025-06-03T07:51:47Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "13e2f70c-21f9-42dc-8ac7-0c6efa92b124",
      "3ca40dfc-cb08-40c7-960d-bc0effae1597"
    ],
    "Companies": [
      "9ee531e2-2c99-41a9-aafd-ae9d2823c960",
      "6e0fc69e-48f1-469b-8636-2ac8e6e340fa"
    ],
    "Groups": [
      "d279cb0b-d43c-4a55-a8b7-da503d423238",
      "6a663fd1-da70-4534-8275-676562dbb904"
    ],
    "Opportunities": [
      "58b2f655-688d-4f9d-931d-3144b0da1181",
      "95b65c9e-71f3-4744-829d-7529ce2d2ec9"
    ]
  }
}

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:
"047ebb71-ad7d-427a-90fd-a50d0fe14c10"