Register task

POST
/api/statistics/tennis

Calling this endpoint registers a task for computing tennis statistics for the provided video denoted by video_url.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/statistics/tennis" \  -H "Content-Type: application/json" \  -d '{    "video_url": "string"  }'
{  "data": {    "task_id": "736fde4d-9029-4915-8189-01353d6982cb",    "estimated_compute_time": 0  }}