1. Mail APIs
ELink Open API
  • Mail APIs
    • Get Mail List
      POST
    • Get Mail Detail
      POST
    • Sync Mail Config To Local
      POST
    • Create Mail Config
      POST
    • Update Mail Config
      POST
    • Delete Mail Config
      POST
  • Proxy APIs
    • Get Proxy List
      POST
    • Get Proxy Detail
      POST
    • Create Proxy
      POST
    • Update Proxy
      POST
    • Delete Proxy
      POST
  • Message APIs
    • Get Message Folder List
      POST
    • Get Message List
      POST
    • Get Message Detail
      POST
    • Send Message
      POST
    • Mark Read Or Unread
      POST
    • Move Message To Target Folder
      POST
    • Mark Starred Or Unstarred
      POST
  1. Mail APIs

Update Mail Config

POST
http://localhost:18321/v1/mail/update
Proxy the remote open-api mail/update endpoint. Use JSON strings for complex structured fields.

Request

Body Params multipart/form-dataRequired

Request Code 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 'http://localhost:18321/v1/mail/update' \
--form 'token="{{token}}"' \
--form 'mail_id="mail_demo_001"' \
--form 'nickname="Demo mail - updated"' \
--form 'remark="Updated via local API"' \
--form 'smtp="{\"auth_type\":\"password\",\"host\":\"smtp.example.com\",\"mail\":\"de***@example.com\",\"password\":\"******\",\"port\":465,\"ssl_type\":\"ssl\"}"' \
--form 'imap="{\"auth_type\":\"password\",\"host\":\"imap.example.com\",\"mail\":\"de***@example.com\",\"password\":\"******\",\"port\":993,\"ssl_type\":\"ssl\"}"' \
--form 'oauth_conf="{\"access_token\":\"******\",\"refresh_token\":\"******\"}"' \
--form 'external_image_status="-1"'

Responses

🟢200
application/json
Success
Body

Example
{
    "code": 200,
    "msg": "ok",
    "data": null
}
Modified at 2026-04-10 06:29:30
Previous
Create Mail Config
Next
Delete Mail Config
Built with