Skip to main content
POST
/
api
/
v2
/
channel-schemas:batch-create
BatchCreateChannelSchemas
curl --request POST \
  --url https://your-sift-api-url.com/api/v2/channel-schemas:batch-create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "requests": [
    {
      "channel": "<string>",
      "unit": "<string>",
      "dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
      "enumTypes": [
        {
          "name": "<string>",
          "key": 123,
          "isSigned": true
        }
      ],
      "bitFieldElements": [
        {
          "name": "<string>",
          "index": 123,
          "bitCount": 123
        }
      ],
      "assetName": "<string>"
    }
  ],
  "assetName": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

The request for a call to ChannelSchemaService_BatchCreateChannelSchemas.

requests
Limit of 1000 channels schemas per batch · object[]
required
assetName
string

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.

Response

A successful response.

The response of a call to ChannelSchemaService_BatchCreateChannelSchemas.