post https://yourorgsite.com/api/Event/_execute
Executes an operation of Event
With the Event service, you can perform the following operations on the execute endpoint:
- CloneEvent
- Populate Event with Specific Properties
- CancelEvent
- CloseEvent
- DeleteEvent
CloneEvent
BODY PARAMS:
{
"$type": "Asi.Soa.Events.DataContracts.EventCloneRequest, Asi.Contracts",
"EntityTypeName": "Event",
"OperationName": "CloneEvent",
"EventId": "string value",
"UserId": "string value",
"EventCode": "string value",
"EventName": "string value"
}
Populate Event with Specific Properties
BODY PARAMS:
{
"$type": "Asi.Soa.Events.DataContracts.EventSpecificPropertiesRequest, Asi.Contracts",
"EntityTypeName": "Event",
"OperationName": null,
"EventId": "string value",
"Properties": [
"string value"
],
"ItemId": "string value",
"RefreshCache": false
}
CancelEvent
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "CancelEvent",
"EntityTypeName": "Event",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "eventId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String"
]
},
"UseJson": false
}
CloseEvent
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "CloseEvent",
"EntityTypeName": "Event",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "eventId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String"
]
},
"UseJson": false
}
DeleteEvent
BODY PARAMS:
{
"$type": "Asi.Soa.Core.DataContracts.GenericExecuteRequest, Asi.Contracts",
"OperationName": "DeleteEvent",
"EntityTypeName": "Event",
"Parameters": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.Object, mscorlib]], mscorlib",
"$values": [
{
"$type": "System.String",
"$value": "eventId Value"
}
]
},
"ParameterTypeName": {
"$type": "System.Collections.ObjectModel.Collection`1[[System.String, mscorlib]], mscorlib",
"$values": [
"System.String"
]
},
"UseJson": false
}