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": "a4168d97-1e12-4ee3-a97f-c642ca0ebeac",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-12-31T03:27:58.01697-06:00",
"EventTime": "2025-12-31T03:27:58.01697-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "a4168d97-1e12-4ee3-a97f-c642ca0ebeac",
"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": "0e65245b-a84b-42fc-a86b-6f8bf36d4a8c",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-12-31T03:27:58.2681225-06:00",
"EventTime": "2025-12-31T03:27:58.2681225-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "0e65245b-a84b-42fc-a86b-6f8bf36d4a8c",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"EventSource": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1
}