Bids Mark as read
This endpoint can be used to mark a bid as read or undo a previous 'mark as read' call.
When replying to a bid, the bid is automatically marked as read.
Reference
POST /bids/markasread/
Mark the specified bid(s) as read.
DELETE /bids/markasread/
Mark the specified bid(s) as un-read.
Fields
field | type | constraints | Req | W | U |
---|---|---|---|---|---|
userId | int | The userId | Yes | No | No |
portal | string | Available options: | Yes | No | No |
- marktplaats | |||||
- tweedehands | |||||
- website | |||||
bidId | int/string | The bidId | Yes | No | No |
marktplaats: int |
|||||
tweedehands: int |
|||||
website: string |
Example marking as read
Request
POST /rest/v1/bids/markasread/ HTTP/2
{
"userId": 12311,
"portal": "marktplaats",
"bidId": [
664569
]
}
Response
{
"result": true,
"errors": []
}
Example marking as unread
Request
DELETE /rest/v1/bids/markasread/ HTTP/2
{
"userId": 12311,
"portal": "marktplaats",
"bidId": [
664569
]
}
Response
{
"result": true,
"errors": []
}