# Create mail exchanger record This function creates a new MX record. When you disable the DNS role, the system this function. Endpoint: GET /savemxs Version: 11.134.0.5 Security: BasicAuth ## Query parameters: - `domain` (string, required) The zone record's domain. Example: "example.com" - `exchange` (string, required) The domain's mail exchanger. Example: "mail.example.com" - `name` (string, required) The record name. Example: "mail.example.com" - `preference` (integer, required) The MX record's priority order. Lower numbers indicate a higher priority order. Example: 20 - `class` (string) The record's class. Example: "IN" - `ttl` (integer) The record's Time To Live (TTL) in seconds. Example: 14400 ## Response 200 fields (application/json): - `metadata` (object) - `metadata.command` (string) The method name called. Example: "savemxs" - `metadata.reason` (string) The reason the API function failed when the field is . This field may display a success message when a function succeeds. Example: "Bind reloading on server1 using rndc zone: [example.com]\n" - `metadata.result` (integer) * — Success. * — Failed. Check the field for more details. Enum: 0, 1 - `metadata.version` (integer) The version of the API function. Example: 1