POST Event/Envelope

Creates an EventEnvelope resource.

Request Information

URI Parameters

None.

Body Parameters

The new EventEnvelope.

EventEnvelope
NameDescriptionTypeAdditional information
RepositoryId

string

None.

Id

string

None.

Durable

boolean

None.

Body

EventMessage

None.

Name

string

None.

TimeStamp

date

None.

Source

string

None.

EventCorrelationItems

Dictionary of Object [key] and Object [value]

None.

SubscriptionCorrelationItems

Dictionary of Object [key] and Object [value]

None.

Delivery

Delivery

None.

Request Formats

application/json, text/json

Sample:
{
  "RepositoryId": "sample string 1",
  "Id": "sample string 2",
  "Durable": true,
  "Body": {},
  "Name": "sample string 4",
  "TimeStamp": "2024-11-22T08:59:39.6237278+01:00",
  "Source": "sample string 6",
  "EventCorrelationItems": null,
  "SubscriptionCorrelationItems": null,
  "Delivery": {
    "Adapter": 0,
    "CustomAdapterName": "sample string 1",
    "Action": "sample string 2",
    "Mode": 0,
    "Url": "sample string 3",
    "Assigned": true,
    "OneShot": true,
    "SubscriptionId": "sample string 6",
    "RetryRate": 7,
    "TargetRepositoryId": "sample string 8",
    "LastError": "sample string 9"
  }
}

application/xml, text/xml

Sample:
<EventEnvelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.openworkbpm.com/schema">
  <Body />
  <Delivery>
    <Action>sample string 2</Action>
    <Adapter>EventLogDeliveryAdapter</Adapter>
    <Assigned>true</Assigned>
    <CustomAdapterName>sample string 1</CustomAdapterName>
    <LastError>sample string 9</LastError>
    <Mode>ApplicationInstance</Mode>
    <OneShot>true</OneShot>
    <RetryRate>7</RetryRate>
    <SubscriptionId>sample string 6</SubscriptionId>
    <TargetRepositoryId>sample string 8</TargetRepositoryId>
    <Url>sample string 3</Url>
  </Delivery>
  <Durable>true</Durable>
  <EventCorrelationItems i:nil="true" />
  <Id>sample string 2</Id>
  <Name>sample string 4</Name>
  <RepositoryId>sample string 1</RepositoryId>
  <Source>sample string 6</Source>
  <SubscriptionCorrelationItems i:nil="true" />
  <TimeStamp>2024-11-22T08:59:39.6237278+01:00</TimeStamp>
</EventEnvelope>

application/x-www-form-urlencoded

Sample:

Response Information

Resource Description

"ResponseValue" = the Id of the created EventEnvelope resource.
The "Location" Header in the HttpResponseMessage contains the new resource URL.

Dictionary of string [key] and string [value]

Response Formats

application/json, text/json

Sample:
{
  "sample string 1": "sample string 2",
  "sample string 3": "sample string 4"
}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfstringstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfstringstring>
    <Key>sample string 1</Key>
    <Value>sample string 2</Value>
  </KeyValueOfstringstring>
  <KeyValueOfstringstring>
    <Key>sample string 3</Key>
    <Value>sample string 4</Value>
  </KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>