Path parameters
-
id
string Required The goal id.
Body
-
name
string Required The name of the club.
-
timesPerWeek
integer Required The number of times to sport per week.
-
endDate
string When the goal is ending.
POST
/1/goals/{id}
curl \
--request POST 'https://api.localsporthero.com/1/goals/{id}' \
--header "Content-Type: application/json" \
--data '{"name":"string","timesPerWeek":42,"endDate":"string"}'
Request examples
{
"name": "string",
"timesPerWeek": 42,
"endDate": "string"
}
Response examples (200)
{
"goal": {
"name": "De Marathon",
"timesPerWeek": 3,
"startDate": "2022-05-02T11:00:00.000Z",
"endDate": "2022-05-02T11:00:00.000Z",
"userId": "df2cd71c-d006-4a46-8e2a-d09503273f07"
}
}