Get challenge messages

GET /1/challenges/{id}/messages

Get challenge messages

Path parameters

  • id string Required

    The challenge id.

Query parameters

  • page integer

    Provide the page you want items for.

    Default value is 1.

  • per integer

    Provide the number of items per page.

    Default value is 10.

Responses

  • 200 application/json

    The challenge messages.

    Hide response attribute Show response attribute object
    • messages array[object]
      Hide messages attributes Show messages attributes object
      • id string Required
      • type string Required
      • title string
      • text string Required
      • date string Required
      • sender string
      • imageUrl string
      • memberId string
      • userId string
      • chatId string Required
      • threadId string Required
      • checkin object
        Hide checkin attributes Show checkin attributes object
        • id string Required
        • imageUrl string
        • tags array[string] Required
GET /1/challenges/{id}/messages
curl \
 --request GET 'https://api.localsporthero.com/1/challenges/{id}/messages'
Response examples (200)
{
  "messages": [
    {
      "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"
        ]
      }
    }
  ]
}