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": "a79c5b9e-75f6-403a-aeb4-36fe42241429",
  "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-07-05T09:44:48Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "e476cd56-bf39-407a-b16c-eec474b5ca5f",
  "EditDate": "2025-07-05T09:44:48Z",
  "CreateDate": "2025-07-05T09:44:48Z",
  "StartTime": "2025-07-05T09:44:48Z",
  "EndTime": "2025-07-05T09:44:48Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "b4402937-cdc0-4772-95d6-c5e6f1d8721c",
      "9f24eb3b-3690-43bd-8655-cbfea18fc281"
    ],
    "Companies": [
      "5aed0a81-de2b-4ca5-a543-1128f21d0582",
      "e9723346-d707-442b-99f1-be968fcf28c9"
    ],
    "Groups": [
      "a62f2dc1-38d1-4746-ba7f-b9e96b582fe8",
      "ec0c62ce-cfc7-4834-84d9-0f494ca74ae5"
    ],
    "Opportunities": [
      "00baf461-5449-4209-ab8f-fe42bdc1d1f7",
      "56ed7f31-666a-4438-8bd5-766acb74fcbb"
    ]
  }
}

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:
"9d4e412c-633f-457d-ac2b-eb5922a85fe8"