curl --request POST https://api.airbotics.io/robots/robot0/streams \
--header 'content-type: application/json' \
--header 'air-api-key: <token>' \
--data '{
  "source": "/turtle1/cmd_vel",
  "type": "geometry_msgs/msg/Twist",
  "hz": 1
}'
{
  "message": "You have created a data collection stream for that robot."
}

Path parameters

id
string
required

The ID of the robot.

Body parameters

source
string
required

The source name of the data stream.

type
string
required

The ROS message type of the data stream.

hz
number
required

The frequency in hz at which the data stream should send data points