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": "58abaa54-44be-434c-b898-734b9b25126a",
  "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": "2024-05-04T15:52:50Z",
    "FileType": "sample string 4",
    "FileExtension": "sample string 5",
    "FileName": "sample string 6",
    "Personal": true,
    "Shortcut": true
  },
  "IsPrivate": true,
  "ManageUserId": "d96f5854-cf29-4633-9f79-6744290f6e09",
  "EditDate": "2024-05-04T15:52:50Z",
  "CreateDate": "2024-05-04T15:52:50Z",
  "StartTime": "2024-05-04T15:52:50Z",
  "EndTime": "2024-05-04T15:52:50Z",
  "Details": "sample string 12",
  "LinkedEntities": {
    "Contacts": [
      "6f770a68-4280-4580-bdc9-c3e9fb080718",
      "2f3b22f4-1192-469d-b89a-fbf7d4414187"
    ],
    "Companies": [
      "e65d9a84-6469-475f-93da-1f04b7a01445",
      "68769387-6cff-4c6b-9fe5-6dca68546f16"
    ],
    "Groups": [
      "59febca0-142b-4a27-a37a-6244790af8c7",
      "e92fb65d-ee3b-4202-b940-57a46c317945"
    ],
    "Opportunities": [
      "3709e755-9ad2-46a3-b517-fbcd416cba48",
      "51205526-e802-4139-b041-165494fd31aa"
    ]
  }
}

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:
"2cbd9aaa-34da-4f1c-82d1-362dee831d9a"