> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siftstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# channel_schemas

> sift/channel_schemas/v2/channel_schemas.proto

<a name="sift_channel_schemas_v2_channel_schemas-proto" />

<a name="sift_channel_schemas_v2_channel_schemas-proto-services" />

## Services

*RPC methods exposed by this API.*

### ChannelSchemaService

| Method                    | Request                                                               | Response                                                                | Description                       |
| :------------------------ | :-------------------------------------------------------------------- | :---------------------------------------------------------------------- | :-------------------------------- |
| CreateChannelSchema       | [CreateChannelSchemaRequest](#createchannelschemarequest)             | [CreateChannelSchemaResponse](#createchannelschemaresponse)             | Create a channel schema           |
| BatchCreateChannelSchemas | [BatchCreateChannelSchemasRequest](#batchcreatechannelschemasrequest) | [BatchCreateChannelSchemasResponse](#batchcreatechannelschemasresponse) | Create a batch of channel schemas |

<a name="sift_channel_schemas_v2_channel_schemas-proto-messages" />

## Messages

*Data models used across requests/responses.*

### BatchCreateChannelSchemasRequest

The request for a call to `ChannelSchemaService_BatchCreateChannelSchemas`.

| Field       | Type                                                      | Label    | Description                                                                                                                                             |
| :---------- | :-------------------------------------------------------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
| requests    | [CreateChannelSchemaRequest](#createchannelschemarequest) | repeated | Limit of 1000 channels schemas per batch                                                                                                                |
| asset\_name | 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. |

### BatchCreateChannelSchemasResponse

The response of a call to `ChannelSchemaService_BatchCreateChannelSchemas`.

*This message has no fields.*

### CreateChannelSchemaRequest

The request for a call to `ChannelSchemaService_CreateChannelSchema`.

| Field                | Type                                                                                      | Label    | Description                               |
| :------------------- | :---------------------------------------------------------------------------------------- | :------- | :---------------------------------------- |
| channel              | string                                                                                    |          |                                           |
| unit                 | string                                                                                    |          |                                           |
| data\_type           | [sift.common.type.v1.ChannelDataType](#sift-common-type-v1-channeldatatype)               |          |                                           |
| enum\_types          | [sift.common.type.v1.ChannelEnumType](#sift-common-type-v1-channelenumtype)               | repeated |                                           |
| bit\_field\_elements | [sift.common.type.v1.ChannelBitFieldElement](#sift-common-type-v1-channelbitfieldelement) | repeated |                                           |
| asset\_name          | string                                                                                    |          | The name of the asset (case-insensitive). |

### CreateChannelSchemaResponse

The response of a call to `ChannelSchemaService_CreateChannelSchema`.

*This message has no fields.*

<a name="sift_channel_schemas_v2_channel_schemas-proto-enums" />

## Enums

*Allowed constant values used in message fields.*
