POST api/AnalyticEvents
Creates a new analytic event in CRM and returns the object.
Request Information
URI Parameters
None.
Body Parameters
Event to create.
CrmAnalyticEvent| Name | Description | Type | Additional information |
|---|---|---|---|
| Reference |
Used to reference the entity in CRM. |
EntityReference |
Optional |
| SystemDate |
Current system date of the client that created this object. |
date |
Optional |
| EventTime |
Date and time the event occurred. |
date |
Required |
| EventType |
Type of event that occurred. |
string |
Required |
| RegardingObject |
Entity the event is in regard to. |
EntityReference |
Required |
| EventSource |
Source of the captured event. |
string |
Required |
| Latitude |
Latitude of where the event occurred. |
decimal number |
Optional |
| Longitude |
Longitude of where the event occurred. |
decimal number |
Optional |
Request Formats
application/json, text/json
{
"Reference": {
"Id": "d466b0fa-55c5-4db6-a213-23fe08eba498",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-11-15T17:52:52.0240827-06:00",
"EventTime": "2025-11-15T17:52:52.0240827-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "d466b0fa-55c5-4db6-a213-23fe08eba498",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"EventSource": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1
}
Response Information
Resource Description
Returns the newly created event.
CrmAnalyticEvent| Name | Description | Type | Additional information |
|---|---|---|---|
| Reference |
Used to reference the entity in CRM. |
EntityReference |
Optional |
| SystemDate |
Current system date of the client that created this object. |
date |
Optional |
| EventTime |
Date and time the event occurred. |
date |
Required |
| EventType |
Type of event that occurred. |
string |
Required |
| RegardingObject |
Entity the event is in regard to. |
EntityReference |
Required |
| EventSource |
Source of the captured event. |
string |
Required |
| Latitude |
Latitude of where the event occurred. |
decimal number |
Optional |
| Longitude |
Longitude of where the event occurred. |
decimal number |
Optional |
Response Formats
application/json, text/json
{
"Reference": {
"Id": "aeddafd7-96b9-40ac-97cf-45f2e4760a09",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-11-15T17:52:52.0240827-06:00",
"EventTime": "2025-11-15T17:52:52.0240827-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "aeddafd7-96b9-40ac-97cf-45f2e4760a09",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"EventSource": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1
}