POST api/AnalyticEvents
Creates a new analytic event in CRM and returns the object.
Request Information
URI Parameters
None.
Body Parameters
Event to create.
CrmAnalyticEventName | 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": "69a6200a-a499-4457-b894-01e465550d8d", "LogicalName": "sample string 2", "Name": "sample string 3" }, "SystemDate": "2025-07-08T17:56:29.5682698-05:00", "EventTime": "2025-07-08T17:56:29.5682698-05:00", "EventType": "sample string 3", "RegardingObject": { "Id": "69a6200a-a499-4457-b894-01e465550d8d", "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.
CrmAnalyticEventName | 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": "9c5156e0-a5db-461d-be8d-0afc29af293e", "LogicalName": "sample string 2", "Name": "sample string 3" }, "SystemDate": "2025-07-08T17:56:29.5682698-05:00", "EventTime": "2025-07-08T17:56:29.5682698-05:00", "EventType": "sample string 3", "RegardingObject": { "Id": "9c5156e0-a5db-461d-be8d-0afc29af293e", "LogicalName": "sample string 2", "Name": "sample string 3" }, "EventSource": "sample string 4", "Latitude": 1.1, "Longitude": 1.1 }