Authorization: ********************{
"name": "string",
"app": "string",
"stream": "string",
"config": {
"is_auth_disabled": true,
"session": "string",
"pushed_at": "2019-08-24T14:15:22.123Z",
"stopped_at": "2019-08-24T14:15:22.123Z",
"push_addr": "string",
"source_url": "string",
"transport": 0,
"timeout_s": 0,
"enabled_audio": true,
"enabled_remove_none_reader": true,
"enabled_disabled_none_reader": true,
"stream_key": "string",
"enabled": true
}
}curl --location --request PUT '/channels/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "string",
"app": "string",
"stream": "string",
"config": {
"is_auth_disabled": true,
"session": "string",
"pushed_at": "2019-08-24T14:15:22.123Z",
"stopped_at": "2019-08-24T14:15:22.123Z",
"push_addr": "string",
"source_url": "string",
"transport": 0,
"timeout_s": 0,
"enabled_audio": true,
"enabled_remove_none_reader": true,
"enabled_disabled_none_reader": true,
"stream_key": "string",
"enabled": true
}
}'{
"id": "string",
"did": "string",
"device_id": "string",
"channel_id": "string",
"name": "string",
"catalog_name": "string",
"name_customized": true,
"hidden": true,
"ptz": 0,
"is_online": true,
"is_playing": true,
"ext": {
"manufacturer": "string",
"model": "string",
"firmware": "string",
"name": "string",
"gb_version": "string"
},
"created_at": "2019-08-24T14:15:22.123Z",
"updated_at": "2019-08-24T14:15:22.123Z",
"type": "string",
"app": "string",
"stream": "string",
"config": {
"is_auth_disabled": true,
"session": "string",
"pushed_at": "2019-08-24T14:15:22.123Z",
"stopped_at": "2019-08-24T14:15:22.123Z",
"push_addr": "string",
"source_url": "string",
"transport": 0,
"timeout_s": 0,
"enabled_audio": true,
"enabled_remove_none_reader": true,
"enabled_disabled_none_reader": true,
"stream_key": "string",
"enabled": true
},
"has_recording": true,
"has_record_plan": true,
"device_name": "string",
"device_channels": 0,
"record_plan_id": 0,
"record_plan_type": "string"
}