Skip to main content
PATCH
/
api
/
v1
/
mails
/
{mailServerID}
/
messages
/
{messageID}
trash and untrash a message
curl --request PATCH \
  --url https://mail-service.iran.liara.ir/api/v1/mails/{mailServerID}/messages/{messageID}/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "isTrash": true
}
'
This response has no body data.

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Path Parameters

mailServerID
string
required
messageID
string
required

Body

application/json

Pass "false" to untrash

isTrash
boolean
required

Response