curl --request PATCH \
--url https://your-sift-api-url.com/api/v3/channels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": {
"channelId": "<string>",
"name": "<string>",
"assetId": "<string>",
"description": "<string>",
"unitId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
],
"enumTypes": [
{
"name": "<string>",
"key": 123,
"isSigned": true
}
],
"bitFieldElements": [
{
"name": "<string>",
"index": 123,
"bitCount": 123
}
],
"displayDescription": "<string>",
"displayUnitId": "<string>"
},
"updateMask": "<string>"
}
'{
"channel": {
"channelId": "<string>",
"name": "<string>",
"assetId": "<string>",
"description": "<string>",
"unitId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
],
"enumTypes": [
{
"name": "<string>",
"key": 123,
"isSigned": true
}
],
"bitFieldElements": [
{
"name": "<string>",
"index": 123,
"bitCount": 123
}
],
"displayDescription": "<string>",
"displayUnitId": "<string>"
}
}Update a channel.
curl --request PATCH \
--url https://your-sift-api-url.com/api/v3/channels \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channel": {
"channelId": "<string>",
"name": "<string>",
"assetId": "<string>",
"description": "<string>",
"unitId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
],
"enumTypes": [
{
"name": "<string>",
"key": 123,
"isSigned": true
}
],
"bitFieldElements": [
{
"name": "<string>",
"index": 123,
"bitCount": 123
}
],
"displayDescription": "<string>",
"displayUnitId": "<string>"
},
"updateMask": "<string>"
}
'{
"channel": {
"channelId": "<string>",
"name": "<string>",
"assetId": "<string>",
"description": "<string>",
"unitId": "<string>",
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"dataType": "CHANNEL_DATA_TYPE_UNSPECIFIED",
"metadata": [
{
"key": {
"name": "<string>",
"type": "METADATA_KEY_TYPE_UNSPECIFIED",
"archivedDate": "2023-11-07T05:31:56Z"
},
"stringValue": "<string>",
"numberValue": 123,
"booleanValue": true,
"archivedDate": "2023-11-07T05:31:56Z"
}
],
"enumTypes": [
{
"name": "<string>",
"key": 123,
"isSigned": true
}
],
"bitFieldElements": [
{
"name": "<string>",
"index": 123,
"bitCount": 123
}
],
"displayDescription": "<string>",
"displayUnitId": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The request for a call to ChannelService_UpdateChannel.
The request for a call to ChannelService_UpdateChannel.
Show child attributes
The full name of the channel.
CHANNEL_DATA_TYPE_UNSPECIFIED, CHANNEL_DATA_TYPE_DOUBLE, CHANNEL_DATA_TYPE_STRING, CHANNEL_DATA_TYPE_ENUM, CHANNEL_DATA_TYPE_BIT_FIELD, CHANNEL_DATA_TYPE_BOOL, CHANNEL_DATA_TYPE_FLOAT, CHANNEL_DATA_TYPE_INT_32, CHANNEL_DATA_TYPE_UINT_32, CHANNEL_DATA_TYPE_INT_64, CHANNEL_DATA_TYPE_UINT_64, CHANNEL_DATA_TYPE_BYTES Show child attributes
Show child attributes
Metadata key type.
METADATA_KEY_TYPE_UNSPECIFIED, METADATA_KEY_TYPE_STRING, METADATA_KEY_TYPE_NUMBER, METADATA_KEY_TYPE_BOOLEAN The list of fields to be updated. The fields available to be updated are display_description, display_units, and metadata.
A successful response.
The result of a call to ChannelService_UpdateChannel.
Show child attributes
The full name of the channel.
CHANNEL_DATA_TYPE_UNSPECIFIED, CHANNEL_DATA_TYPE_DOUBLE, CHANNEL_DATA_TYPE_STRING, CHANNEL_DATA_TYPE_ENUM, CHANNEL_DATA_TYPE_BIT_FIELD, CHANNEL_DATA_TYPE_BOOL, CHANNEL_DATA_TYPE_FLOAT, CHANNEL_DATA_TYPE_INT_32, CHANNEL_DATA_TYPE_UINT_32, CHANNEL_DATA_TYPE_INT_64, CHANNEL_DATA_TYPE_UINT_64, CHANNEL_DATA_TYPE_BYTES Show child attributes
Show child attributes
Metadata key type.
METADATA_KEY_TYPE_UNSPECIFIED, METADATA_KEY_TYPE_STRING, METADATA_KEY_TYPE_NUMBER, METADATA_KEY_TYPE_BOOLEAN Was this page helpful?