Skip to main content
PATCH
/
api
/
v1
/
mails
/
{mailServerID}
edit mail server
curl --request PATCH \
  --url https://mail-service.iran.liara.ir/api/v1/mails/{mailServerID} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "mode": "DEV",
  "inboundSpamThreshold": 123
}
'
{
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

mailServerID
string
required

Body

application/json
mode
enum<string>
required
Available options:
DEV,
LIVE
inboundSpamThreshold
number
required

Response

OK

status
string