Universal Event Web Services
Universal Controller supports the following RESTful-based web service for Universal Events.
Formatting specifications for the web service, including details about parameter requirements, are provided.
Authorization to publish or push a Universal Event is assigned by the Universal Event Create permission, or by the ops_admin role.
When publishing or pushing Universal Events through the Web Service API, take into consideration both Universal Controller server and Database server sizings.
Publish Universal Event
Description | |
|---|---|
URI | http://host_name/uc/resources/universalevent/publish |
Description | Publish a global Universal Event. |
HTTP Method | POST |
Example URI | |
Authentication | HTTP Basic |
Consumes Content-Type | application/xml, application/json |
Produces Content-Type | text/plain |
Example Responses |
|
Publish Universal Event: XML and JSON Example Request
- JSON
- XML
JSON
{
"name": "ExampleEvent",
"businessServices": [
"BusinessServiceName1",
"BusinessServiceName2"
],
"ttl": 60,
"attributes": [
{
"name": "example_attribute1",
"value": "Value1"
},
{
"name": "example_attribute2",
"value": "Value2"
}
]
}
XML
<?xml version="1.0" encoding="UTF-8" ?>
<universalEvent>
<name>ExampleEvent</name>
<businessServices>
<businessService>BusinessServiceName1</businessService>
<businessService>BusinessServiceName2</businessService>
</businessServices>
<ttl>60</ttl>
<attributes>
<attribute>
<name>example_attribute1</name>
<value>Value1</value>
</attribute>
<attribute>
<name>example_attribute2</name>
<value>Value2</value>
</attribute>
</attributes>
</universalEvent>
Push Universal Event
The push endpoint provides an Inbound Webhook endpoint for third party Webhook integration with Universal Events.
- The request body is captured as the
payloadattribute. ttlandbusinessService(multi-value) query parameters specify the Universal Event TTL and Member of Business Services, respectively.- All other query parameters are captured as attributes with the exception of an
access_tokenquery parameter.- Any character in a query parameter name that is not a letter or digit is converted to an underscore (_).
- All headers are captured as attributes with the exception of
authorizationandconnection.- Any character in a header name that is not a letter or digit is converted to an underscore (_).
Description | |
|---|---|
URL | http://host_name/uc/resources/universalevent/push/ |
HTTP Method | POST info If you cannot use the POST HTTP Method, you can alternatively use the GET HTTP Method with the |
Description | Publish a global Universal Event. |
Consumes Content-Type | application/xml, application/json, text/plain, text/xml |
Produces Content-Type | text/plain |
Example URI | |
Example Responses |
|