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": "7749ae15-7760-4205-9f45-b9fa411c535b",
  "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-09-02T20:29:30Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "90b188b6-9ff0-4f21-b9f6-b14bb42dc047",
  "EditDate": "2025-09-02T20:29:30Z",
  "CreateDate": "2025-09-02T20:29:30Z",
  "StartTime": "2025-09-02T20:29:30Z",
  "EndTime": "2025-09-02T20:29:30Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "932ef40e-69b1-4072-aee7-17991e0c255f",
      "3602fc94-6bfd-4059-ab03-5beaf6730210"
    ],
    "Companies": [
      "5e5674de-f542-4242-b71e-72d41fc3c443",
      "25aff93b-15d4-4fd6-b05b-214f35f9930b"
    ],
    "Groups": [
      "2c055421-ae3e-4752-bf50-dc284da7368d",
      "eaf9652b-1933-4fe4-8337-b37ce66d3bc3"
    ],
    "Opportunities": [
      "c5807c6c-3011-4930-b199-c55fb72648ea",
      "116b14b5-c44c-49a5-9db4-5752f2f5e4c6"
    ]
  }
}

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:
"fc026a05-92ea-4641-972c-1770472e6e43"