POST {repositoryId}/Event/Custom
Publishes a Custom Event.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| repositoryId |
ID of the resource repository (optional). |
string |
Default value is |
Body Parameters
The new CustomEvent.
CustomEvent| Name | Description | Type | Additional information |
|---|---|---|---|
| ModelReference | NamedReference |
None. |
|
| Fields | Dictionary of Object [key] and Object [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"ModelReference": {
"Name": "sample string 1",
"Url": "sample string 2",
"Type": 0
},
"Fields": null
}
application/xml, text/xml
Sample:
<CustomEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.openworkbpm.com/schema">
<Fields i:nil="true" />
<ModelReference>
<Type>Undefined</Type>
<Url>sample string 2</Url>
<Name>sample string 1</Name>
</ModelReference>
</CustomEvent>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
"ResponseValue" = true if the Custom Event has been published, false otherwise.
Dictionary of string [key] and boolean [value]Response Formats
application/json, text/json
Sample:
{
"sample string 1": true,
"sample string 3": true
}
application/xml, text/xml
Sample:
<ArrayOfKeyValueOfstringboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<KeyValueOfstringboolean>
<Key>sample string 1</Key>
<Value>true</Value>
</KeyValueOfstringboolean>
<KeyValueOfstringboolean>
<Key>sample string 3</Key>
<Value>true</Value>
</KeyValueOfstringboolean>
</ArrayOfKeyValueOfstringboolean>