Update notifications

POST /1/notifications

Update notifications

application/json

Body

  • viewed array Required

    The list of notification ids that are viewed.

  • clicked array Required

    The list of notification ids that are clicked.

Responses

POST /1/notifications
curl \
 --request POST 'https://api.localsporthero.com/1/notifications' \
 --header "Content-Type: application/json" \
 --data '{"viewed":[],"clicked":[]}'
Request examples
{
  "viewed": [],
  "clicked": []
}
Response examples (200)
{
  "notifications": [
    {
      "id": "df2cd71c-d006-4a46-8e2a-d09503273f07",
      "type": "waiting_list_passed",
      "viewed": true,
      "clicked": false,
      "title": "Welcome To Local Sport Hero",
      "body": "We're lucky to have you.",
      "date": "2022-05-02T11:00:00.000Z",
      "imageUrl": "https://path/to/image.jpg",
      "deeplink": "localsporthero://deeplink/explore"
    }
  ]
}