How to use AssystRest to insert a batch of events?
Solved
How to use AssystRest to insert a batch of events?
Best answer by Alan Macfarlane
Hi
There’s no distinct API for a batch of events, each event would need its own request*. An example to do this might look like:
Content-Type: application/json
POST https://{server}:{port}/assystRest/v2/events
BODY
{
“eventType”: 1,
“affectedUserName”: “Bob User”,
“affectedUserEmail”: “bob@company.com”
// etc.
}
There are some examples here.
(*there is a feature called “Object Graph” in REST which allows the submission of multiple objects via one request however there is no support for it with the /events resource yet - if its is of use to you I would suggest registering the request via our Ideas forum)
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.