- global
- rtmp
- gb28181
- monitor
- mp4
- transcode
- debug
- stress
- cluster
- test
修改上级平台
开发中
POST
/gb28181/api/platform/update
请求参数
Body 参数application/json
ID
integer
必需
enable
boolean
必需
name
string
必需
server_gb_id
string
必需
server_gb_domain
string
必需
server_ip
string
必需
server_port
integer
必需
device_gb_id
string
必需
device_ip
string
必需
device_port
integer
必需
username
string
必需
password
string
必需
expires
integer
必需
keep_timeout
integer
必需
transport
string
必需
character_set
string
必需
ptz
boolean
必需
rtcp
boolean
必需
status
string
必需
channel_count
integer
必需
catalog_subscribe
boolean
必需
alarm_subscribe
boolean
必需
mobile_position_subscribe
boolean
必需
catalog_group
integer
必需
as_message_channel
boolean
必需
send_stream_ip
string
必需
auto_push_channel
boolean
必需
catalog_with_platform
integer
必需
catalog_with_group
integer
必需
catalog_with_region
integer
必需
civil_code
string
必需
manufacturer
string
必需
model
string
必需
address
string
必需
register_way
integer
必需
secrecy
integer
必需
示例
{
"id": 17,
"enable": true,
"name": "测试平台",
"serverGBId": "34020000001320000006",
"serverGBDomain": "3402000000",
"serverIp": "192.168.1.17",
"serverPort": 5062,
"deviceGBId": "34020000002000000001",
"deviceIp": "192.168.1.17",
"devicePort": 5061,
"username": "admin",
"password": "123456",
"expires": 3600,
"keepTimeout": 60,
"transport": "UDP",
"characterSet": "GB2312",
"ptz": true,
"rtcp": true,
"catalogGroup": 1,
"auto_push_channel": true,
"catalog_with_platform": 1,
"catalog_with_group": 1,
"catalog_with_region": 1,
"civilCode": "340200",
"manufacturer": "Monibuca",
"model": "GB28181",
"address": "安徽合肥",
"register_way": 1,
"secrecy": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/gb28181/api/platform/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"id":17,
"enable": true,
"name": "测试平台",
"serverGBId": "34020000001320000006",
"serverGBDomain": "3402000000",
"serverIp": "192.168.1.17",
"serverPort": 5062,
"deviceGBId": "34020000002000000001",
"deviceIp": "192.168.1.17",
"devicePort": 5061,
"username": "admin",
"password": "123456",
"expires": 3600,
"keepTimeout": 60,
"transport": "UDP",
"characterSet": "GB2312",
"ptz": true,
"rtcp": true,
"catalogGroup": 1,
"auto_push_channel": true,
"catalog_with_platform": 1,
"catalog_with_group": 1,
"catalog_with_region": 1,
"civilCode": "340200",
"manufacturer": "Monibuca",
"model": "GB28181",
"address": "安徽合肥",
"register_way": 1,
"secrecy": 0
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}

扫码关注公众号"不卡科技"
包含最佳实践、技术原理、最新活动



扫码加入不卡科技QQ 群

