Broadcast Database Projects
Create a project
POST https://api-v2.acrcloud.com/api/bm-bd-projects
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
region
string
eu-west-1,us-west-2,ap-southeast-1
name
string
The project name
buckets
array
Bucket ids array
{
"data": {
"id": 12345,
"name": "test",
"uid": 2,
"region": "eu-west-1",
"bucket_ids": "14661",
"updated_at": "2021-02-22 03:38:28",
"created_at": "2021-02-22 03:38:27",
"access_key": "**********",
"buckets": [
{
"id": 14661,
"uid": 2,
"name": "test",
"type": "File",
"node": "10.12.12.236-850",
"state": 1,
"region": "eu-west-1",
"metadata_template": "isrc, artist, album",
"labels": [
"Music"
],
"net_type": 1,
"created_at": "2020-07-06 11:25:08",
"updated_at": "2020-07-06 11:25:08",
"num": 0,
"size": 0,
"access_permission": "private"
}
],
"config": {
"record": {
},
"ucf": {
},
"callback_result": {
"enabled": 0,
"type_name": "diy",
"diy_url": "",
"diy_send_type": 2,
"diy_send_noresult": 0,
"diy_result_type": -1,
"r3d_source": "",
"r3d_url": "",
"r3d_key1": "",
"r3d_key2": "",
"r3d_result_type": "0"
},
"callback_state": {
"enabled": 0,
"url": "",
"send_type": 2
},
"email_state": {
"email": "",
"type": 2
},
"access_permission": {
"add_tv": 0,
"edit_url": 0,
"can_modify": 1
}
},
"monitoring_num": 0,
"type": "BM-Database",
"status_check": 2
}
}Update a project
PUT https://api-v2.acrcloud.com/api/bm-bd-projects/:id
Path Parameters
id
number
The project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
name
string
The project name
buckets
array
Delete a project
DELETE https://api-v2.acrcloud.com/api/bm-bd-projects/:id
Path Parameters
id
string
The project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
List the projects
GET https://api-v2.acrcloud.com/api/bm-bd-projects
Query Parameters
region
string
Headers
Authorization
string
Bearer token
Accept
string
application/json
Set results callback URL
POST https://api-v2.acrcloud.com/api/bm-bd-projects/:id/result-callback
After you set the results callback URL, the monitoring system will post the result to your callback URL in real-time.
Path Parameters
id
string
the project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
result_callback_url
string
set the callback url
result_callback_send_noresult
number
result_callback_send_noresult: whether inform you when no content detected. 0 or 1
result_callback_
string
result_callback_result_type: 0: RealTime 1: Delay
The following is the example of the results of the monitoring system posting to your results callback URL
Set state notification callback
POST https://api-v2.acrcloud.com/api/bm-bd-projects/:id/state-notification
After you set the state callback URL, the monitoring system will post the states to your callback URL in real-time when the state of the channel changes.
Path Parameters
id
number
The project id
Headers
Authorization
string
Bearer token
Accept
string
application/json
Content-Type
string
application/json
Request Body
state_callback_url
string
If the streams state change, we will post a result to this url you set.
Example of monitoring system sending state data to your callback URL
The details of the state code
0
Running
1
Timeout
4
Paused
6
Invaild URL
10
Deleted
12
Mute
Last updated