Skip to main content
PATCH
/
v1
/
threads
/
{id}
Update thread
curl --request PATCH \
  --url https://api.openmail.sh/v1/threads/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_read": true
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
is_read
boolean
required

Set to true to mark as read, false to mark as unread

Response

Thread updated

ok
boolean