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": []
}
Related Articles
List events in asset (file)
In this article, you will learn how to list all events in an asset. Live events in asset Request Type: GET Header: Authorization: ApiKey <my_api_token> URL: https://app.banyanboard.com/api/assets/<my_file_uuid>/templates/<my_template_2_uuid>/events/ ...
Bulk create externally linked assets
In this article, you will learn how to bulk create externally linked assets. Bulk create externally linked assets Request Type: POST Header: Authorization: ApiKey <my_api_token> URL: ...
Update asset URL
In this article, you will learn how to update URL of an asset. Update asset URL Request Type: PATCH Header: Authorization: ApiKey <my_api_token> URL: https://app.banyanboard.com/api/assets/<my_file_uuid>/ Payload: { "url": ...
Create annotation group
In this article, you will learn how to create an annotation group. Create annotation group Request Type: POST Header: Authorization: ApiKey <my_api_token> URL: https://app.banyanboard.com/api/assets/<my_file_uuid>/annotation_groups/ Payload: { ...
Share file and annotation
In this article, you will learn how to share a file and annotation. Before you begin To add files, refer to this article. To learn how to create captions in SPAN sports performance analysis platform, refer to this article. Sharing file To share a ...