API DocsRESTIngestion config service

CreateIngestionConfigFlows

Create ingestion config [flows](/glossary#flow).

POST
/api/v2/ingestion-configs/{ingestionConfigId}/flows

Request Body

application/jsonRequired

flowsarray<object>

These flows must have unique names. If you try to send a flow with a name that already exists for an ingestion config, it will return an error.

Path Parameters

ingestionConfigId
Required
string

curl -X POST "<API_URL>/api/v2/ingestion-configs/string/flows" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "flows": [
      {
        "name": "string",
        "channels": [
          {
            "name": "string",
            "unit": "string",
            "description": "string",
            "dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
            "enumTypes": [
              {
                "name": "string",
                "key": 0
              }
            ],
            "bitFieldElements": [
              {
                "name": "string",
                "index": 0,
                "bitCount": 0
              }
            ]
          }
        ]
      }
    ]
  }'

A successful response.

{}