Skip to content
Developer

EventScoreboardTrainer

Events2 EndpointsEvent / EventScoreboardTrainer

Add a scoreboard entry (score, card, suspension, period start/end, ...) as trainer of the event

POST/api/event/customer/scoreboard/{eventIdentifier}/activity

Path parameters

eventIdentifierrequiredstring

Request body application/json

  • dataEventScoreboardActivity2
    Show fields (10)
    • activity_typestring

      Type of the activity, for example goal, penalty or time-out.

    • sidestring

      HOME, AWAY or null (phase changes, notes).

    • pointsinteger

      Points of a SCORE entry (1 for a goal, 1/2/3 in basketball).

    • minuteinteger

      Match minute, as entered.

    • periodinteger

      Period (half, quarter, set) the entry belongs to; set from the match state when empty.

    • player_namestring

      Name of the player the activity belongs to.

    • player_numberstring

      Jersey number.

    • duration_minutesinteger

      Suspension length in minutes (SUSPENSION, e.g. 2).

    • notestring

      Note on the activity.

    • deletedboolean

      This property is used to mark an entity as deleted / archived

Responses

200Scoreboard of the event

Request
curl --request POST \
  --url https://your-instance.iw-erp.de/api/event/customer/scoreboard/42/activity \
  --header 'content-type: application/json' \
  --header 'x-iw-jwt-token: <TOKEN>' \
  --data '
{
  "data": {
    "player_name": "Beispiel",
    "activity_type": "string",
    "side": "string",
    "points": 1,
    "minute": 1,
    "period": 1
  }
}
'

Remove a scoreboard entry as trainer of the event

DELETE/api/event/customer/scoreboard/{eventIdentifier}/activity/{identifier}

Path parameters

eventIdentifierrequiredstring
identifierrequiredstring

Responses

200Scoreboard of the event

Request
curl --request DELETE \
  --url https://your-instance.iw-erp.de/api/event/customer/scoreboard/42/activity/42 \
  --header 'x-iw-jwt-token: <TOKEN>'