DHB / api (0.2.0)
Download OpenAPI specification:Download
Documentation of the DHB / hockey API. Please note that the contents is currently still under development and returned values are likely to change.
getOrganisationDetails
Retrieve the details of the organisation.
Authorizations:
path Parameters
id required | string Organisation ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 123,
- "parent_id": 234,
- "name": "Musterorganisation",
- "address": {
- "street": "Musterstrasse",
- "street_number": "1a",
- "city": "Musterstadt",
- "state": "Musterbundesland",
- "postal_code": "12345",
- "country": "Germany"
}
}
getOrganisationLeagues
Retrieve a list of available leagues within a given organisation
Authorizations:
path Parameters
id required | string Organisation ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 7,
- "name": "1. Bundesliga Herren Feld",
- "abbreviation": "1BLH",
- "age_group": "1. Herren",
- "umpire_license": [
- {
- "name": "DHB E3 – Umpire"
}
], - "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "season": {
- "id": 3,
- "name": "Feld 2022/2023",
- "competition_type": "OUTDOOR"
}
}
]
getOrganisationClubs
Retrieve a list of available clubs within a given organisation
Authorizations:
path Parameters
id required | string Organisation ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 456,
- "name": "Muster Hockey Club e.V.",
- "short_name": "Muster HC",
- "abbreviation": "MHC",
}
]
getOrganisationUmpires
DRAFT ONLY - Retrieve a list of available umpires within a given organisation
Authorizations:
path Parameters
id required | string Organisation ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}
]
getLeagueDetails
Retrieve the details of a league.
Authorizations:
path Parameters
id required | string League ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 7,
- "name": "1. Bundesliga Herren Feld",
- "abbreviation": "1BLH",
- "age_group": "string",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "umpire_license": [
- {
- "name": "DHB E3 – Umpire"
}
], - "umpire_classification": [
- {
- "name": "E3A - Regionalliga"
}
], - "season": {
- "id": 3,
- "name": "Feld 2022/2023",
- "competition_type": "OUTDOOR"
}, - "stages": [
- {
- "name": "Gruppenphase 1",
- "type": "GROUP"
}
]
}
getTeamsByLeague
Retrieve the teams playing in a league.
Authorizations:
path Parameters
id required | string League ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}
]
getMatchesByLeague
Retrieve the matches of a given league.
Authorizations:
path Parameters
id required | string League ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "pushback": "2023-06-22T14:30:00+00:00",
- "id": 12032,
- "stage": "PLAYOFFS",
- "group_name": "Hinrunde",
- "status": "WARMUP",
- "score_home": 2,
- "score_away": 1,
- "home_team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "away_team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "location": {
- "id": 789,
- "name": "Sparkassenpark",
}, - "pitch": {
- "name": "Pitch 1"
}, - "umpire1": {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}, - "umpire2": {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}, - "video_umpire": {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}
}
]
getStandingsByLeague
Retrieve the standings for a league.
Authorizations:
path Parameters
id required | string League ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "phase": "GROUP",
- "group_name": "Staffel A",
- "table_entries": [
- {
- "position": 1,
- "team_name": "Muster HC",
- "played_matches": 10,
- "goals_for": 52,
- "goals_against": 20,
- "goal_difference": 32,
- "points": 21,
- "wins": 7,
- "draws": 7,
- "losses": 7,
- "shootout_wins": 1
}
]
}
]
getTopScorersByLeague
Retrieve the table for a league.
Authorizations:
path Parameters
id required | string League ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "position": 1,
- "name": "Jane",
- "surname": "Doe",
- "team_name": "Muster HC",
- "played_matches": 10,
- "goals": 32,
}
]
getClubDetails
Retrieve details of a club.
Authorizations:
path Parameters
id required | string Club ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 456,
- "name": "Muster Hockey Club e.V.",
- "short_name": "Muster HC",
- "abbreviation": "MHC",
- "organisation": {
- "id": 123,
- "parent_id": 234,
- "name": "Musterorganisation"
}, - "contact": {
- "name": "John Doe",
- "email": "john.doe@organisation.com"
}, - "address": {
- "street": "Musterstrasse",
- "street_number": "1a",
- "city": "Musterstadt",
- "state": "Musterbundesland",
- "postal_code": "12345",
- "country": "Germany"
}, - "tags": [
- {
- "name": "Bundesliga"
}
]
}
getTeamsByClub
Retrieve the teams playing for a club.
Authorizations:
path Parameters
id required | string Club ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}
]
getTeamDetails
Retrieve the details for a team.
Authorizations:
path Parameters
id required | string Team ID to fetch information for. |
Responses
Response samples
- 200
[- {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "shortName": "MHC",
- "ageGroup": "Erwachsene",
- "players": [
- {
- "id": 231292,
- "name": "John",
- "surname": "Doe",
- "shirtNumber": "5",
- "position": "Defender",
- "captain": true,
- "goalkeeper": true,
- "substitute_goalkeeper": true,
- "passportId": 231292
}
], - "staff": [
- {
- "id": 823920,
- "name": "Jane",
- "surname": "Doe",
- "role_title": "Trainer*in"
}
]
}
]
getMatchDetails
Retrieve a single match's details.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 12032,
- "stage": "PLAYOFFS",
- "periods": 4,
- "periods_minutes": 15,
- "status": "WARMUP",
- "score_home": 3,
- "score_away": 2,
- "pushback": "2023-06-22T14:30:00+00:00",
- "home_team_id": 102,
- "away_team_id": 102,
- "location": {
- "id": 789,
- "name": "Sparkassenpark",
}, - "pitch": {
- "name": "Pitch 1"
}, - "umpire_license": [
- {
- "name": "DHB E3 – Umpire"
}
], - "umpire_classification": [
- {
- "name": "E3A - Regionalliga"
}
]
}
getHomeTeamMatchDetails
Retrieve a single match's home team's details.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "shortName": "MHC",
- "ageGroup": "Erwachsene",
- "players": [
- {
- "id": 231292,
- "name": "John",
- "surname": "Doe",
- "shirtNumber": "5",
- "position": "Defender",
- "captain": true,
- "goalkeeper": true,
- "substitute_goalkeeper": true,
- "passportId": 231292
}
], - "staff": [
- {
- "id": 823920,
- "name": "Jane",
- "surname": "Doe",
- "role_title": "Trainer*in"
}
]
}
getAwayTeamMatchDetails
Retrieve a single match's away team's details.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "shortName": "MHC",
- "ageGroup": "Erwachsene",
- "players": [
- {
- "id": 231292,
- "name": "John",
- "surname": "Doe",
- "shirtNumber": "5",
- "position": "Defender",
- "captain": true,
- "goalkeeper": true,
- "substitute_goalkeeper": true,
- "passportId": 231292
}
], - "staff": [
- {
- "id": 823920,
- "name": "Jane",
- "surname": "Doe",
- "role_title": "Trainer*in"
}
]
}
getLiveMatchDetails
Retrieve a single match's live ticker details and high level status.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "status": "In progress",
- "phase": "Q3",
- "home_team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "away_team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "period_scores": [
- {
- "sequence": 4,
- "type": "regular OR shootout",
- "home_score": 2,
- "away_score": 1
}
], - "umpire1": {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}, - "umpire2": {
- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}
}
getLiveMatchEvents
Provides a play-by-play event timeline for a current live game.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "subtype": "GOAL-SCORED",
- "type_commentary": "string",
- "period": 0,
- "timestamp": "2023-06-22T14:30:00+00:00",
- "team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "player": {
- "id": 231292,
- "name": "John",
- "surname": "Doe",
- "shirtNumber": "5",
- "position": "Defender",
- "captain": true,
- "goalkeeper": true,
- "substitute_goalkeeper": true,
- "passportId": 231292
}, - "staff": {
- "id": 823920,
- "name": "Jane",
- "surname": "Doe",
- "role_title": "Trainer*in"
}
}
getMatchUmpires
Retrieve the umpires for a single match.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}
setMatchOfficials
DRAFT ONLY - Set the umpires and umpire observers for matches.
Authorizations:
path Parameters
id required | string Match ID to fetch information for. |
Request Body schema: application/jsonrequired
Update customer with properties to be changed
id | integer <int64> The ID of the person. |
role | string Enum: "UMPIRE" "UMPIRE_OBSERVER" "UMPIRE_VIDEO" "JUDGE" Role of the official in the match |
Responses
Request samples
- Payload
[- {
- "id": 231292,
- "role": "UMPIRE"
}
]
Response samples
- 200
{- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}
getPlayerDetails
Retrieve a single player's details.
Authorizations:
path Parameters
id required | string Player ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 231292,
- "name": "John",
- "surname": "Doe",
- "teams": [
- {
- "team": {
- "id": 102,
- "club_id": 456,
- "leagueId": 7,
- "name": "1. Herren Muster HC",
- "short_name": "MHC",
- "age_group": "Erwachsene",
- "uniform": {
- "shirt": "#ff9900",
- "shorts": "#ff9900",
- "socks": "#ff9900",
- "goalkeeper": "#ff9900"
},
}, - "shirt_no": "5",
- "position": "Defender",
}
]
}
Retrieve a single umpire's details.
Authorizations:
path Parameters
id required | string Umpire ID to fetch information for. |
Responses
Response samples
- 200
{- "id": 102032,
- "legacy_id": 823920,
- "name": "John",
- "surname": "Doe",
- "license": {
- "name": "DHB E3 – Umpire"
}, - "classification": {
- "name": "E3A - Regionalliga"
}
}