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": "1538d301-6ca7-4b94-a28a-64a403675d4c",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-11-29T19:16:43.0173897-06:00",
"EventTime": "2025-11-29T19:16:43.0173897-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "1538d301-6ca7-4b94-a28a-64a403675d4c",
"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": "a6f8335a-53d1-4068-aa57-ec5819bf1cac",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-11-29T19:16:43.0330064-06:00",
"EventTime": "2025-11-29T19:16:43.0330064-06:00",
"EventType": "sample string 3",
"RegardingObject": {
"Id": "a6f8335a-53d1-4068-aa57-ec5819bf1cac",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"EventSource": "sample string 4",
"Latitude": 1.1,
"Longitude": 1.1
}