API DocsRESTChannel schema service

BatchCreateChannelSchemas

Create a batch of channel schemas

POST
/api/v2/channel-schemas:batch-create

Request Body

application/jsonRequired

The request for a call to ChannelSchemaService_BatchCreateChannelSchemas.

requests
Required
Limit of 1000 channels schemas per batch

assetNamestring

The asset to which the channel schemas belong (case-insensitive). If this field, and any of the child requests specify an asset, the assets must match.

curl -X POST "<API_URL>/api/v2/channel-schemas:batch-create" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "requests": [
      {
        "channel": "string",
        "unit": "string",
        "dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
        "enumTypes": [
          {
            "name": "string",
            "key": 0
          }
        ],
        "bitFieldElements": [
          {
            "name": "string",
            "index": 0,
            "bitCount": 0
          }
        ],
        "assetName": "string"
      }
    ],
    "assetName": "string"
  }'

A successful response.

{}