StatsHub Docs
APIAPI v2V2 endpoint referenceIncidents

/incidents/{incidentId}

Updates an incident.

PUT
/incidents/{incidentId}

Updates an incident.

Path Parameters

incidentId*string

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 PUT "https://example.com/incidents/string" \  -H "Content-Type: application/json" \  -d '{    "awayPenaltiesPeriod1": 0,    "awayPenaltiesPeriod2": 0,    "awayRedCardsPeriod1": 0,    "awayRedCardsPeriod2": 0,    "awayYellowCardsPeriod1": 0,    "awayYellowCardsPeriod2": 0,    "eventId": 0,    "homePenaltiesPeriod1": 0,    "homePenaltiesPeriod2": 0,    "homeRedCardsPeriod1": 0,    "homeRedCardsPeriod2": 0,    "homeYellowCardsPeriod1": 0,    "homeYellowCardsPeriod2": 0,    "id": "string"  }'
{  "message": "string"}