Perform Task - User Defined Event

Unable to Perform Task using Post through Postman. Through GET Command successfully able to read user defined event, same ID used for perfom task error message “Task not found“. Same ID if used for deleting user defined event found success.

Postman Command:

GET https://200.0.0.2/API/rest/v1/userdefinedevents/354f025d-ae34-42b3-aaf6-1ad9b6385fb2

Response:

{
“data”: {
“displayName”: “Event Low”,
“id”: “354f025d-ae34-42b3-aaf6-1ad9b6385fb2”,
“name”: “Event Low”,
“lastModified”: “2026-11-19T12:29:56.8000000Z”,
“createdDate”: “0001-01-01T00:00:00.0000000Z”,
“subtype”: “UserDefined”,
“relations”: {
“self”: {
“type”: “userDefinedEvents”,
“id”: “354f025d-ae34-42b3-aaf6-1ad9b6385fb2”
}
}
}
}

Now tried to trigger event using Perform Task

POST https://200.0.0.2/API/rest/v1/userdefinedevents/354f025d-ae34-42b3-aaf6-1ad9b6385fb2

Response:

{
“error”: {
“httpCode”: 400,
“details”: [
{
“errorText”: “Task not found”
}
]
}
}

If tried to delete though postman

DELETE https://200.0.0.2/API/rest/v1/userdefinedevents/354f025d-ae34-42b3-aaf6-1ad9b6385fb2

Response:

{
“state”: “Success”
}

“Perform task” isn’t the way to trigger a user defined event. Triggering is done through the Events REST API, with a POST to /events and the event in the body:

POST https://200.0.0.2/API/rest/v1/events Content-Type: application/json

{ “type”: “354f025d-ae34-42b3-aaf6-1ad9b6385fb2”, “datatype”: “none” }

type is the ID of the event type, and datatype is none because user defined events don’t carry data. A valid request returns 202, and the event is then processed by your rules and alarms like any other event. You can look up valid event type IDs with the Configuration API (Get all eventTypes).

Note that your last request deleted that user defined event, so you need to create it again before you can trigger it.

The two parts of the REST API are documented separately, which I agree is a bit confusing: the Configuration API manages the event definition, and the Events API triggers it.

Reference: Trigger an event in the Events REST API documentation.