Skip to main content
POST
/
api
/
v1
/
hubs
/
{hub_id}
/
conversations
/
mark-all-read
Mark All Conversations Read
curl --request POST \
  --url https://api.member.dev/api/v1/hubs/{hub_id}/conversations/mark-all-read \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "up_to": "2023-11-07T05:31:56Z"
    },
    "type": "conversation_read_receipts"
  }
}
'
{
  "data": {
    "attributes": {
      "marked_count": 123,
      "read_at": "<string>"
    },
    "id": "<string>",
    "type": "<string>",
    "links": {
      "self": "<string>"
    },
    "meta": {},
    "relationships": {}
  },
  "included": [
    "<unknown>"
  ],
  "links": {
    "self": "<string>"
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

hub_id
string
required

Body

application/vnd.api+json

JSON:API envelope for POST .../mark-all-read.

data.type must be 'conversation_read_receipts'. data.attributes.up_to is an optional TZ-aware ISO-8601 datetime.

data
_MarkAllReadData · object
required

Response

Successful Response

data
JsonApiResource[ReadReceiptAttributes] · object
required
included
any[] | null
meta
Meta · object