StatsHub Docs
APIAPI v2V2 endpoint referenceCompetitions

/competitions

Inserts a competition.

POST
/competitions

Inserts a competition.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

curl -X POST "https://example.com/competitions" \  -H "Content-Type: application/json" \  -d '{    "categoryId": 0,    "displayInverseHomeAway": true,    "hasEventPlayerStatistics": true,    "hasPerformanceGraph": true,    "id": 0,    "name": "string",    "primaryColorHex": "string",    "secondaryColorHex": "string",    "slug": "string",    "userCount": 0  }'
{  "id": 0,  "message": "string",  "name": "string"}