Skip to main content
Configure a stream
curl --request POST \
  --url http://localhost/api/devices/configure_stream \
  --header 'Content-Type: application/json' \
  --data '
{
  "bus_info": "<string>",
  "stream_format": {
    "width": 123,
    "height": 123,
    "interval": {
      "numerator": 123,
      "denominator": 123
    }
  },
  "enabled": true,
  "endpoints": [
    {
      "host": "<string>",
      "port": 123
    }
  ]
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.dwe.ai/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
bus_info
string
required
stream_type
enum<string>
required
Available options:
UDP,
RECORDING
stream_format
StreamFormatModel · object
required
encode_type
enum<string>
required
Available options:
MJPG,
H264,
SOFTWARE_H264,
NONE
enabled
boolean
required
endpoints
StreamEndpointModel · object[]
required

Response

Successful Response

success
boolean
default:true