curl --request POST \
--url https://apix.us.amity.co/api/v3/channels/seen \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channels": [
{
"channelId": "67cfbbe1c5dbdcb2909935e5",
"readToSegment": 4
},
{
"channelId": "67cfbbd7c5dbdcb2909935d0",
"readToSegment": 10
},
{
"channelId": "67cfbbd7c5dbdcb2909935d1",
"readToSegment": 10
}
]
}
'{
"status": "error",
"code": 400400,
"message": "Resource Not Found."
}curl --request POST \
--url https://apix.us.amity.co/api/v3/channels/seen \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"channels": [
{
"channelId": "67cfbbe1c5dbdcb2909935e5",
"readToSegment": 4
},
{
"channelId": "67cfbbd7c5dbdcb2909935d0",
"readToSegment": 10
},
{
"channelId": "67cfbbd7c5dbdcb2909935d1",
"readToSegment": 10
}
]
}
'{
"status": "error",
"code": 400400,
"message": "Resource Not Found."
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information of read sengment to be updated
List of channels with their respective readToSegment values. Each channel object must include a channelId and the readToSegment value.
Show child attributes
[
{
"channelId": "67cfbbe1c5dbdcb2909935e5",
"readToSegment": 4
},
{
"channelId": "67cfbbd7c5dbdcb2909935d0",
"readToSegment": 10
},
{
"channelId": "67cfbbd7c5dbdcb2909935d1",
"readToSegment": 10
}
]This endpoint returns 200 OK if the request is successful.