REST API eventTypes response with a 400 code

Hi,

I’m creating a plugin and I want to retrieve the eventTypes so I can get the Id and then trigger the event. For that purpose I request:

https://localhostAPI/rest/v1/eventTypes and get a 400 “unknown Guid format”

Also I tried to do

https://localhost/API/rest/v1/eventTypeGroups/29101d41-f0d7-44be-8d14-5f21c57d6bf0/eventTypes

Response: 400 “Unknown Guid format”

{

“type”: “68d980d6-be33-461f-a07e-1fd95c08bd7d”,

“source”: “mipKinds/00a31d54-dd61-423e-a27b-057b4f77e111”,

“time”: “2009-02-15T00:00:00.0000000Z”,

“datatype”: “none”,

“tag”: “My custom tag”

}

I get the information from:

“self”: {

      "type": "mipKinds",

      "id": "00a31d54-dd61-423e-a27b-057b4f77e111"

    }

Response: 400 “Unknown event type, retrieve valid event types from /api/rest/v1/eventTypes”

So, how can I trigger an event for a MIPItem, how can I request for the MipKind, MipItem, Event… and so on.

Also, if a trigger event is trigger by REST API, I assume it will be received with the event /api/ws/events/v1 websocket

Thank you for the help

/localhostAPI/rest/v1/eventTypes

should be

/localhost/API/rest/v1/eventTypes

I assume this is a typo that is not the issue.

On a GET

/localhost/API/rest/v1/eventTypes

Do you get an error 400 “unknown Guid format”?

I must suspect there is something wrong with the request that hasn’t been told here.

I would assume nothing works but if you get information from something else that works…

Please take a step back, try to outline what other GET requests work, and what does not, and see if you can tell me the difference.

PS. Working with the Sensor Monitor sample I can see events on MIP Items like this: