Create bulk events in asset (file)
Create bulk events in asset (file)
In this article, you will learn how to create bulk events in an asset.
Create bulk events in asset
Request Type:
POST
Header:
Authorization: ApiKey <my_api_token>
URL:
https://app.banyanboard.com/api/assets/<my_file_uuid>/templates/<my_template_uuid>/bulk_events/
Payload:
{
"events": [
{
"start_time": 0.0,
"end_time": 2,
"primary_category": "Real Madrid Goals",
"labels": [
{
"label": "Left Foot",
"secondary_category": "Goal Foot"
}
]
},
{
"start_time": 0.9,
"end_time": 2.3,
"primary_category": "Barcelona Goals",
"labels": []
}
]
}
Results:
{
"asset_name": "Real Madrid 3-1 Barcelona | La Liga 2022/23",
"template_name": "El-Clasico Football Template",
"message": "Created 2 events and 3 tags.",
"num_events": 2,
"num_tags": 3,
"errors": []
}