Authorization: Bearer ********************{
"device_id": "string",
"name": "string",
"password": "string",
"stream_mode": 0,
"username": "string",
"ip": "string",
"port": 0
}curl --location --request PUT 'http://test-cn.your-api-server.com/devices/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"device_id": "string",
"name": "string",
"password": "string",
"stream_mode": 0,
"username": "string",
"ip": "string",
"port": 0
}'{
"id": "string",
"type": "string",
"device_id": "string",
"name": "string",
"transport": "string",
"stream_mode": 0,
"ip": "string",
"port": 0,
"is_online": true,
"registered_at": 0,
"keepalive_at": 0,
"keepalives": 0,
"expires": 0,
"channels": 0,
"created_at": 0,
"updated_at": 0,
"password": "string",
"address": "string",
"username": "string",
"ext": {
"manufacturer": "string",
"model": "string",
"firmware": "string",
"name": "string",
"gb_version": "string",
"zones": [
{
"name": "string",
"coordinates": [
0
],
"color": "string",
"labels": [
"string"
]
}
],
"enabled_ai": true
}
}