APIs to create and manage events.
Flag to indicate if the cancellation should be processed asynchronously.
List of events to be cancelled.
curl -i -X POST \
https://apis.spotnana.com/v2/events/bulk-cancel \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"cancelAsync": false,
"cancelEventRequests": [
{
"eventId": "56789012",
"type": "GENERIC"
}
]
}'
{ "cancelEventResponses": [ { … } ] }
Company Id for which job was created.
curl -i -X POST \
https://apis.spotnana.com/v2/events/jobs/status \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"companyId": "c5977a9b-095a-40be-a1bb-b9d3c894e4a5",
"filters": {
"filterType": "string",
"jobId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b"
}
}'
{ "jobId": "f7b3b3b3-7b3b-4b3b-8b3b-3b3b3b3b3b3b", "referenceId": "8859676988", "type": "PUBLISH", "status": "COMPLETED", "totalItems": 42, "successCount": 41, "failureCount": 1, "jobItems": [ { … } ], "createdAt": { "iso8601": "2017-07-21T17:32Z" }, "completedAt": { "iso8601": "2017-07-21T17:32Z" } }