mailpit unofficial
PUT/api/v1/messages

Set read status

You can optionally provide an array of IDs or a search string. If neither IDs nor search is provided then all mailbox messages are updated.

1 parameter · 3 body fields
tzstringoptional
Optional [timezone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used only for `before:` & `after:` searches (eg: "Pacific/Auckland").
IDsarray<string>optional
Optional array of message database IDs
Default:[]
Readbooleanoptional
Read status
Default:false
Searchstringoptional
Optional messages matching a search

2 status codes
200Plain text "ok" response
400Server error will return with a 400 status code with the error message in the body

Error handling

A 400 is returned: Server error will return with a 400 status code with the error message in the body.