404 triggering event

On a customer system we are triggering an analytics event and getting a 404 error which isn’t documented. Wondering what we have wrong.

Prior to trying to trigger the event we have logged in correctly and found some cameras and also retrieved a list of alarms from the configuration API. We are using the UUID for one of those alarms in the “type” key for the API. The source is one of the cameras we retrieved earlier.

We are POSTing to http://(server address)/api/rest/v1/events

Payload is:

{

“type”: “594ae7a8-7339-46ce-8b9d-86eea7025877”,

“source”: “e3310f9d-0032-4f95-8f76-a3dfb2579038”,

“time”: “2024-05-20T19:15:01Z”,

“datatype”: “analytics”,

“data”: {

“description”: “some descriptive text”,

“startTime”: “2024-05-20T19:15:01Z”,

“endTime”: “2024-05-20T19:15:01Z”,

“location”: “Default Location”,

“vendor”: { “name”: “Company” }

}

}

Thanks for any advice.

One more thing, the customer system responds with version 22.4.1453 in /api/.well-known/uris Perhaps the REST events API is not implemented on this as suggested by:

New in XProtect VMS 2023 R2

  • RESTful Events API (beta) and RESTful Alarms API (beta)

You are correct, this must be the reason.

Requirements..

https://doc.developer.milestonesys.com/mipvmsapi/api/events-rest/v1/#section/Quickstart/Requirements