dispatches
Adds a dispatch configuration
Necessary flows are automatically created.
post/dispatches
Request body
Example request
[
{
"applicationName": "SnazzyContacts",
"applicationUid": "32bsf84hzsf8a",
"adapterComponentId": "46u08ejsf",
"transformerComponentId": "twg9huh46",
"secretId": "548z9jvsda",
"outbound": {
"active": true,
"flows": [
{
"adapterAction": "getPersons",
"transformerAction": "transformToOih",
"schemaUri": "http://metadata.openintegrationhub.com/api/v1/domains/testDomainId/schemas/person"
}
]
},
"inbound": {
"active": true,
"flows": [
{
"adapterAction": "createPerson",
"transformerAction": "transformFromOih",
"schemaUri": "http://metadata.openintegrationhub.com/api/v1/domains/testDomainId/schemas/person",
"operation": "CREATE"
}
]
}
}
]Response
The created configuration.
Example response
{
"data": {
"id": "adgeth2huo31r59",
"tenant": "aeg0ihq3w328",
"applications": [
{
"applicationName": "SnazzyContacts",
"applicationUid": "32bsf84hzsf8a",
"adapterComponentId": "46u08ejsf",
"transformerComponentId": "twg9huh46",
"secretId": "548z9jvsda",
"outbound": {
"active": true,
"flows": [
{
"adapterAction": "getPersons",
"transformerAction": "transformToOih",
"schemaUri": "http://metadata.openintegrationhub.com/api/v1/domains/testDomainId/schemas/person"
}
]
},
"inbound": {
"active": true,
"flows": [
{
"adapterAction": "createPerson",
"transformerAction": "transformFromOih",
"schemaUri": "http://metadata.openintegrationhub.com/api/v1/domains/testDomainId/schemas/person",
"operation": "CREATE"
}
]
}
}
]
}
}