Exago Logo
Search
Generic filters
Exact matches only

REST – Server Events

Server events can be accessed for reference and disabled for the session. Server events cannot currently be created or edited using REST.

Important

All requests require a Session ID URL parameter and basic request headers. In the following document, headers are omitted for clarity.

Server Event JSON

Server events are represented as JSON objects with the following properties:

NameTypeWritableDescription
IdstringnoThe unique Id of this server event
NamestringnoThe name of this server event

Note

Access to other properties of server events via REST is not yet implemented.

Example

{
  "Id":   "0",
  "Name": "RunAfterReportExecution"
}

List Server Events

GET /rest/ServerEvents

List all the server events in the current configuration. Output is an array of objects, each representing an individual server event.

NameTypeDescription
IdstringThe unique Id of this server event
NamestringThe name of this server event

Using curl

curl http://{webservice}/rest/ServerEvents?sid={sid} -X GET

Example response

Status: 200 OK

[
  {
    "Id":   "0",
    "Name": "RunAfterReportExecution"
  },
  {
    "Id":   "1",
    "Name": "AddDisclaimerToOutput"
  }
]

Show Server Event

GET /rest/ServerEvents/{Id}

Show the properties of the server event specified by its Id.

Using curl

curl http://{webservice}/rest/ServerEvents/{Id}?sid={sid} -X GET

Example response

Status: 200 OK

{
  "Id":   "0",
  "Name": "RunAfterReportExecution"
}

Delete Server Event

DELETE /rest/ServerEvents/{Id}

Using curl

curl http://{webservice}/rest/ServerEvents/{Id}?sid={sid} -X DELETE

Example response

Status: 204 No Content
Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents