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": "bdb19290-54d9-490e-8596-00d3aa6dbf0e",
  "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-18T05:06:43Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "ca933686-eedf-4623-b5b9-2e5a257585c2",
  "EditDate": "2025-04-18T05:06:43Z",
  "CreateDate": "2025-04-18T05:06:43Z",
  "StartTime": "2025-04-18T05:06:43Z",
  "EndTime": "2025-04-18T05:06:43Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "bf0f586a-1130-4638-ba3a-632aeba37f74",
      "3a840ab7-eddd-4da8-88a6-5f1bba25482d"
    ],
    "Companies": [
      "f3950b1d-50ed-4c56-8954-30fc061e84e9",
      "c939ed10-fb9c-4a43-bf50-ffadc0e62dd2"
    ],
    "Groups": [
      "30634f40-6880-4f31-9272-7784825e16c8",
      "5f4f9175-7e60-41f0-935a-c139726eb31c"
    ],
    "Opportunities": [
      "b3d152a9-9b5e-4a5d-b901-95d55f9a7dea",
      "d6c5e84a-1587-41b7-b72d-6c80ffc71540"
    ]
  }
}

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:
"0becd135-219a-4430-8ae1-3b9f9ac38c95"