Update smtp rule
POST
/v1/smtp-filter/updateAt least one parameter to be modified must be provided; do not include parameters that do not require changes in the request.
请求参数
Body Params multipart/form-data
token
string
required
Token generated by the management backend
Example:
{{token}}
smtp_filter_id
string
required
Rule ID (can be obtained from the GetMX backend, or through the /v1/message-notice/list endpoint; the 'id' field corresponds to 'message_notice_id').
Example:
12345678
rule
string
optional
Mail receiving rule
Example:
{}
action
string
optional
Action to be performed
Example:
{}
mark
string
optional
Mark
Example:
mark
status
integer
optional
Status, -1 for disabled, 1 for enabled
Example:
1
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
msg
string
required
data
null
required
Example
{
"code": 0,
"msg": "string",
"data": null
}
Last modified: 6 个月前