Warning: API Version 1 is deprecated. Please use API Version 2.
Api Documentation

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.
Retrieves single match.
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.
Json
XML
POST https://api.bundeling.com/V1/matches

Parameters

Body

NameDescriptionTypeNillableRequired
opponent_club_idThe id of the club your team will be playing against.intfalsetrue
home_matchDefines if the match is played at home or away.booleanfalsetrue
locationThe location where the match will be played.stringfalsetrue
attending_emailWhen users set their status to "attending" a confirmation email will be sent to this address.stringfalsefalse
dateThe date and time of the match.datetimefalsetrue
sponsor_idCustomers can sponsor matches, set this field to the id of the sponsoring customer.intfalsefalse
publicationdateThe date on which this match will be available to users.datetimefalsetrue
labelsLabels to add to this newsitem.array(int)falsefalse

Example request

Headers

Content-Type:application/json
Api-Key:RAegSX8yZfEbqSPM

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
    ]
}