PUT https://api.bundeling.com/V1/matchesParameters Url Name Description Type id
A unique integer used to identify a match int
Body Name Description Type Nillable opponent_club_id
The id of the club your team will be playing against. int
false
home_match
Defines if the match is played at home or away. boolean
false
location
The location where the match will be played. string
false
attending_email
When users set their status to "attending" a confirmation email will be sent to this address. string
false
date
The date and time of the match. datetime
false
sponsor_id
Customers can sponsor matches, set this field to the id of the sponsoring customer. int
false
publicationdate
The date on which this match will be available to users. datetime
false
goals_self
The amount of goals your team has scored. int
false
goals_opponent
The amount of goals the opposing team has scored. int
false
labels
Labels to add to this newsitem. array(int)
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",
"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
]
}