GetMX-API
  1. Message Notice
GetMX-API
  • Domain
    • Get Domains
      POST
    • Add Domain
      POST
    • Delete Domain
      POST
    • Get Domain Detail
      POST
    • Bind Domain to Group-Pay
      POST
    • Unbind Domain from Group-Pay
      POST
    • Update Domain
      POST
  • Group Pay
    • Get Group-Pays
      POST
    • Add Group-Pay
      POST
    • Update Group-Pay
      POST
  • Email
    • Get Emails
      POST
    • Add Email
      POST
    • Delete Email
      POST
    • Update Email
      POST
    • Clean up Email
      POST
  • Message
    • Get Messages
      POST
    • Get Message Detail
      POST
    • Delete Message
      POST
    • Flagged Message
      POST
    • Seen Message
      POST
    • Answered Message
      POST
    • Get Folders
      POST
    • Move Message Folder
      POST
  • Alias
    • Get Aliases
    • Add Alias
    • Delete Alias
    • Update Alias
  • Message Notice
    • Get Message Notices
      POST
    • Add Message Notice
      POST
    • Delete Message Notice
      POST
    • Check Message Notice
      POST
    • Update Message Notice
      POST
  • SMTP Rule
    • Get Smtp Rules
    • Add Smtp Rule
    • Update Smtp Rule
    • Delete Smtp Rule
  • Scale
    • Query Remaining Space
    • Server Cleanup
  1. Message Notice

Update Message Notice

POST
/v1/message-notice/update
At least one parameter to be modified must be provided; do not include parameters that do not require changes in the request.

Request

Body Params multipart/form-data
token
string 
required
Token generated by the management backend.
Example:
{{token}}
message_notice_id
string 
required
Rule ID (can be obtained from the GetMX backend, or through the /v1/message-notice/list endpoint; the 'id' field
Example:
12345678
platform
string 
optional
Platform: 1 for WebHook, 2 for Lark, 3 for WeCom, 4 for DingTalk
Example:
1
notice_url
string 
optional
WebHook notification URL
Example:
http://api.com/notice

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://domain-open-api.getmx.com/v1/message-notice/update' \
--form 'token="token"' \
--form 'message_notice_id="12345678"' \
--form 'platform="1"' \
--form 'notice_url="http://api.com/notice"'

Responses

🟢200成功
application/json
Body
code
integer 
required
msg
string 
required
data
null 
required
Example
{
  "code": 0,
  "msg": "string",
  "data": null
}
Previous
Check Message Notice
Next
Get Smtp Rules
Built with