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": "5b35a02a-2f78-4c69-9a89-a09a220906f9",
  "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-04-15T17:03:33Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "f1b9b8a6-1bca-4e55-8fc5-1f25018f1141",
  "EditDate": "2026-04-15T17:03:33Z",
  "CreateDate": "2026-04-15T17:03:33Z",
  "StartTime": "2026-04-15T17:03:33Z",
  "EndTime": "2026-04-15T17:03:33Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "d3756e74-857d-4840-a041-653b2a17f878",
      "003aacb9-017b-4900-a06c-97114070a4d0"
    ],
    "Companies": [
      "30d3d2a3-34fe-4106-a5e5-3681bea86aff",
      "9d5da90c-53b2-4bec-87c7-916684809086"
    ],
    "Groups": [
      "ab4dc5aa-bbe3-4bb8-9069-038b12f9900a",
      "122d0db8-cef3-4e69-992b-143ce9fa961e"
    ],
    "Opportunities": [
      "431b2d2a-60d2-4f85-a9ed-21d22bd05705",
      "1c4951ff-146e-4d60-86f0-71b49634946f"
    ]
  }
}

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:
"774bf38f-4bf2-4a85-83d3-e2ffad94f117"