- 0 Login
- 1 System Settings
- 1.1 System Infomation
- 1.2 System Time
- 1.3 System Maintenance
- 1.4 Universal Asynchronous Receiver/Transmitter(UART)
- 1.5 General-purpose input/output(GPIO)
- 1.6 System Reboot
- 1.7 System Reset
- 1.8 System Memory
- 1.9 System Update
- 1.10 RS485
- 2 Network Settings
- 2.1 TCP/IP
- 2.2 4G Network
- 2.3 Wi-Fi Network
- 3 Platform Settings
- 3.1 GB-T28181
- 3.2 Customised platform
- 3.3 File Transfer Protocol (FTP)
- 3.4 Open Network Video Interface Forum(ONVIF)
- 3.5 Real Time Streaming Protocol (RTSP)
- 4 Video Settings
- 4.1 Video Channel Encode
- 4.2 Video Channel OSD
- 4.3 ISP
- 4.4 Day/Night Switching
- 4.5 Lens Distortion Correction(LDC)
- 4.6 Channel Rotation
- 4.7 Screen Flip
- 4.8 Snapshot
- 5 Audio Settings
- 6 Intelligent Settings
- 7 Alarm Settings
- 8 Record Settings
- 9 Pan/Tilt/Zoom(PTZ) Settings
- Appendix
3.1.2 Setting GB-T28181 Parameters
POST
/api/network/config
Request
Cookie Params
access_token
string
required
Default:
{{access_token}}
Body Params application/json
id
string
required
op
string
required
data
object (GB28181 Protocol)
required
server_ip
string
required
server_port
integer
required
server_code
string
required
server_domain
string
required
device_name
string
optional
device_model
string
required
device_code
string
required
device_pwd
string
required
device_ip
string
optional
device_port
integer
required
device_firmware
string
optional
device_vcode
string
required
device_acode
string
required
cmd_ttype
integer
required
stream
integer
required
stream_ttype
integer
required
expired
integer
required
keepalive
integer
required
status
integer
optional
enable
integer
required
Example
{
"id": "GSF_ID_GB_CFG",
"op": "G1C0S0",
"data": {
"server_ip": "192.168.0.69",
"server_port": 5060,
"server_code": "34020000002000000001",
"server_domain": "3402000000",
"device_name": "BovaIPC",
"device_model": "AIPCAM",
"device_code": "34020000001320000188",
"device_pwd": "12345678",
"device_ip": "192.168.0.186",
"device_port": 5060,
"device_firmware": "v2.3.6, build 20220803",
"device_vcode": "34020000001320000188",
"device_acode": "34020000001370000188",
"cmd_ttype": 1,
"stream": 0,
"stream_ttype": 0,
"expired": 3600,
"keepalive": 60,
"status": 0,
"enable": 0
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://192.168.0.168/api/network/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_GB_CFG",
"op": "G1C0S0",
"data": {
"server_ip": "192.168.0.69",
"server_port": 5060,
"server_code": "34020000002000000001",
"server_domain": "3402000000",
"device_name": "BovaIPC",
"device_model": "AIPCAM",
"device_code": "34020000001320000188",
"device_pwd": "12345678",
"device_ip": "192.168.0.186",
"device_port": 5060,
"device_firmware": "v2.3.6, build 20220803",
"device_vcode": "34020000001320000188",
"device_acode": "34020000001370000188",
"cmd_ttype": 1,
"stream": 0,
"stream_ttype": 0,
"expired": 3600,
"keepalive": 60,
"status": 0,
"enable": 0
}
}'
Responses
🟢200请求成功
application/json
Body
code
integer
required
data
object
optional
Example
{
"code": 0,
"data": {}
}
Modified at 2024-12-27 07:37:35