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
PUT https://api.bundeling.com/V1/matches

Parameters

Url

NameDescriptionType
idA unique integer used to identify a matchint

Body

NameDescriptionTypeNillable
opponent_club_idThe id of the club your team will be playing against.intfalse
home_matchDefines if the match is played at home or away.booleanfalse
locationThe location where the match will be played.stringfalse
attending_emailWhen users set their status to "attending" a confirmation email will be sent to this address.stringfalse
dateThe date and time of the match.datetimefalse
sponsor_idCustomers can sponsor matches, set this field to the id of the sponsoring customer.intfalse
publicationdateThe date on which this match will be available to users.datetimefalse
goals_selfThe amount of goals your team has scored.intfalse
goals_opponentThe amount of goals the opposing team has scored.intfalse
labelsLabels to add to this newsitem.array(int)false

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",
    "goals_self": 2,
    "goals_opponent": 1,
    "labels": [
        14
    ]
}

Example response

{
    "id": 14,
    "opponent_club_id": 15,
    "home_match": true,
    "goals_self": 2,
    "goals_opponent": 0,
    "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": [
        1,
        4,
        8,
        12,
        19,
        21
    ],
    "attending_users": [
        1,
        6,
        12
    ],
    "labels": [
        14
    ]
}