---
title: "Adds a dispatch configuration"
method: POST
path: "/dispatches"
tags: ["dispatches"]
---

# Adds a dispatch configuration

`POST /dispatches`

Necessary flows are automatically created.

## Request body

- MutableApplications[]
  - `applicationName` string — Human-Readable name of the application
  - `applicationUid` string — Unique identifier of the application
  - `adapterComponentId` string — ComponentId of the application's adapter
  - `transformerComponentId` string — ComponentId of the application's transformer
  - `secretId` string — ID of the secret containing credentials for this application
  - `outbound` object — Contains information about data received from the application
    - `active` boolean — Denotes whether this direction is active
    - `flows` MutableOutboundFlow[] — Contains information about each flow
      - `adapterAction` string — Action taken by the adapter
      - `transformerAction` string — Action taken by the transformer
      - `schemaUri` string — URI of the schema used by this flow
  - `inbound` object — Contains information about data sent to the application
    - `active` boolean — Denotes whether this direction is active
    - `flows` MutableInboundFlow[] — Contains information about each flow
      - `adapterAction` string — Action taken by the adapter
      - `transformerAction` string — Action taken by the transformer
      - `schemaUri` string — URI of the schema used by this flow
      - `operation` string — For inbound flows, denoting which operation (C/U/D) is used

## Response `201`

The created configuration.

- object
  - `data` Config
    - `id` string — Unique ID of this configuration
    - `tenant` string — ID of the tenant owning this configuration
    - `applications` MutableApplications[] — An array containing all connected applications
      - `applicationName` string — Human-Readable name of the application
      - `applicationUid` string — Unique identifier of the application
      - `adapterComponentId` string — ComponentId of the application's adapter
      - `transformerComponentId` string — ComponentId of the application's transformer
      - `secretId` string — ID of the secret containing credentials for this application
      - `outbound` object — Contains information about data received from the application
        - `active` boolean — Denotes whether this direction is active
        - `flows` MutableOutboundFlow[] — Contains information about each flow
          - `adapterAction` string — Action taken by the adapter
          - `transformerAction` string — Action taken by the transformer
          - `schemaUri` string — URI of the schema used by this flow
      - `inbound` object — Contains information about data sent to the application
        - `active` boolean — Denotes whether this direction is active
        - `flows` MutableInboundFlow[] — Contains information about each flow
          - `adapterAction` string — Action taken by the adapter
          - `transformerAction` string — Action taken by the transformer
          - `schemaUri` string — URI of the schema used by this flow
          - `operation` string — For inbound flows, denoting which operation (C/U/D) is used
  - `meta` object

## Changes

- **2019-11-07** `e01209799d00` — 1 breaking
  - the request's body type changed from no type to `array`
- **2019-11-06** `9cfe593b63ff` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openintegrationhub/apis/dispatcher-service/changes/dispatches/post.md)

---

[API](https://skmtc.dev/openintegrationhub/apis/dispatcher-service.md) · [All operations](https://skmtc.dev/openintegrationhub/apis/dispatcher-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintegrationhub/dispatcher-service/revisions/b1bc16183131/schema)
