Path parameters
-
activityid
string Required Activity id.
POST
/1/activities/{activityid}/messages
curl \
--request POST 'https://api.localsporthero.com/1/activities/{activityid}/messages' \
--header "Content-Type: application/json" \
--data '{"id":"string","text":"string","date":"string"}'
Request examples
{
"id": "string",
"text": "string",
"date": "string"
}
Response examples (200)
{
"message": {
"id": "85362399-38e1-4255-87a0-f3f984ed16d9",
"type": "system, user or generated",
"title": "Update",
"text": "Hey ola!",
"date": "2022-05-02T11:00:00.000Z",
"sender": "Sebassie",
"imageUrl": "https://example.org/image.jpg",
"memberId": "85362399-38e1-4255-87a0-f3f984ed16d9",
"userId": "85362399-38e1-4255-87a0-f3f984ed16d9",
"chatId": "85362399-38e1-4255-87a0-f3f984ed16d8",
"threadId": "85362399-38e1-4255-87a0-f3f984ed16d8",
"checkin": {
"id": "85362399-38e1-4255-87a0-f3f984ed16d8",
"imageUrl": "https://example.org/image.jpg",
"tags": [
"15 km, 200 push ups"
]
}
}
}