Mark notifications as read

POST /v1/spotMembers/{spotMemberId}/notifications~markAsRead

Mark notifications as read

Path parameters

  • spotMemberId string Required

    The id of the Spot member

application/json

Body Required

  • id object

    Filters on notifications to include

    Hide id attribute Show id attribute object
    • id[in] array[string]

      The notifications to include in the result

Responses

  • 200 application/json

    Notifications successfully marked as read

    Hide response attributes Show response attributes object
    • id string Required

      The id of the notification.

    • userId string Required

      The user id of the notification.

    • logId string Required

      The log id of the notification.

    • isRead boolean Required

      To know if notification was read

    • createdAt string(date-time) Required

      The creation date of the notification.

    • log object | null Required
      Hide log attributes Show log attributes object | null
      • id string Required

        The id of the notification log.

      • spotId string Required

        The spot id of the notification log.

      • type string Required

        The type of the notification log.

        Values are AskJoinPrivateSpot, ChannelMessageMention, ChannelMessageReported, CourseGeneratedFailed, CourseGeneratedSuccess, CourseParticipantInvited, DiscussionMessageReported, DocumentMention, HubspotConnectionLost, LiveMention, LiveMessageMention, LiveMessageReported, LiveParticipantInvited, LiveStarted, MemberAddedOnChannel, MemberAddedToForum, MemberAddedToCollection, MessageReplied, NewDirectMessage, NewMessage, ReportStatusUpdated, SmtpServerConnectionFailed, SpotMemberRoleUpdated, SpotMention, TopicAnswerReported, TopicCreated, TopicMention, TopicMessageCreated, TopicMessageMention, TopicReported, UserInvitedToSpot, or UserJoinedPublicSpot.

      • body object Required

        The body of the notification log.

  • 400

    Malformed payload

POST /v1/spotMembers/{spotMemberId}/notifications~markAsRead
curl \
 --request POST 'https://openapi.meltingspot.io/v1/spotMembers/{spotMemberId}/notifications~markAsRead' \
 --header "Content-Type: application/json" \
 --data '{"id":{"id[in]":["string"]}}'
Request examples
{
  "id": {
    "id[in]": [
      "string"
    ]
  }
}
Response examples (200)
[
  {
    "id": "string",
    "userId": "string",
    "logId": "string",
    "isRead": true,
    "createdAt": "2025-05-04T09:42:00Z",
    "log": {
      "id": "string",
      "spotId": "string",
      "type": "AskJoinPrivateSpot",
      "body": {}
    }
  }
]