Matches
Matches can be sponsored by Customers through the sponser_id field.
The players field contains an array of player id's. To turn these id's into names, use the PLAYERS endpoint. When the Man of the Match module is enabled,
users can vote for their Man of the Match through the MANOFTHEMATCH endpoint.
Retrieves a collection of matches.
Creates a new match. Only available to API keys without user authentication.
Creates a new match. Only available to API keys without user authentication.
Deletes a single match. Only available to API keys without user authentication.
POST https://api.bundeling.com/V1/matchesParameters Body Name Description Type Nillable Required opponent_club_id
The id of the club your team will be playing against. int
false
true
home_match
Defines if the match is played at home or away. boolean
false
true
location
The location where the match will be played. string
false
true
attending_email
When users set their status to "attending" a confirmation email will be sent to this address. string
false
false
date
The date and time of the match. datetime
false
true
sponsor_id
Customers can sponsor matches, set this field to the id of the sponsoring customer. int
false
false
publicationdate
The date on which this match will be available to users. datetime
false
true
labels
Labels to add to this newsitem. array(int)
false
false
Example request Raw cURL JavaScript PHP Python Go Choose language
Headers Body {
"opponent_club_id": 15,
"home_match": true,
"location": "Uden",
"attending_email": "support@bundeling.com",
"date": "2017-02-10T16:00:00+0000",
"sponsor_id": 6,
"publicationdate": "2017-01-15T18:00:00+0000",
"labels": [
14
]
} Example response {
"id": 14,
"opponent_club_id": 15,
"home_match": true,
"goals_self": null,
"goals_opponent": null,
"location": "Uden",
"attending_email": "support@bundeling.com",
"man_of_the_match": 5,
"date": "2017-02-10T16:00:00+0000",
"sponsor_id": 6,
"publicationdate": "2017-01-15T18:00:00+0000",
"players": [],
"labels": [
14
]
}