Streams
Add a stream
POST
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams
Path Parameters
pid*
string
Project Id.
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
stream_urls*
array
name*
string
config_id*
integer
user_defined
string
User-defined stream metadata
List streams in a project
GET
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams
Path Parameters
pid
string
The Project ID
Query Parameters
timemap
number
0 or 1
state
string
All,Running,Timeout,Paused,Invalid URL,Mute,Other. Default is All.
search_value
string
Search by Name, StreamID, URL, User-defind, Remark
sort
string
sort by 'created_at', 'stream_id', 'name', Default is 'created_at'
order
string
order by desc or asc, default is desc.
Headers
Authorization
string
Bearer token
Accept
string
application/json
Update a stream
PUT
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams/:stream_id
Path Parameters
pid
number
The project id
stream_id
string
The stream id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-type
string
application/json
Request Body
name
string
The stream name
stream_urls
array
The stream urls
config_id
number
The config id
user_defined
object
User-defined metadata for this stream
Delete a stream
DELETE
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams/:stream_ids
Path Parameters
pid
number
The project id
stream_ids
string
Multiple stream ids, separated by ","
Headers
Authorization
string
Bearer token
Accept
string
application/json
Pause a stream
PUT
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams/:stream_ids/pause
Path Parameters
pid
number
stream_ids
string
One or multiple stream ids, separated by ','
Headers
Authorization
string
Bearer token
Restart a stream
PUT
https://api-v2.acrcloud.com/api/bm-cs-projects/:pid/streams/:stream_ids/restart
Path Parameters
pid
string
stream_ids
string
One or multiple stream ids, separated by ','
Headers
Authorization
string
Bearer token
Last updated