---
title: "Update a RecordMX object."
method: PUT
path: "/record:mx/{payload.ref.ref_data}/**"
tags: ["record:mx"]
---

# Update a RecordMX object.

`PUT /record:mx/{payload.ref.ref_data}/**`

## Request

- Base URL: `https://csp.infoblox.com/wapi/v3`
- URL: `https://csp.infoblox.com/wapi/v3/record:mx/{payload.ref.ref_data}/**`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/infoblox/apis/dns-data-web-api/docs/record:mx/:payload.ref.ref_data/**/put.ts> (a function with typed inputs; its response is checked against the schema)

Use this method to update the __RecordMX__ object.

## Path parameters

- `payload.ref.ref_data` string, required

## Request body

- V3RecordMX: A __RecordMX__ object (_dns/record_) represents a DNS resource record in an authoritative zone. A DNS MX record specifies a mail exchange server responsible for accepting email messages on behalf of a domain.
  - `comment` string: Comment for the RecordMX; maximum 1024 characters.
  - `creator` string: Creator for the RecordMX. Note that changing creator from or to 'SYSTEM' value is not allowed.
  - `disable` boolean: Determines if the RecordMX is disabled or not. False means that the RecordMX is enabled.
  - `mail_exchanger` string, required: The mail exchanger host in FQDN format.
  - `name` string, required: The name of the RecordMX in FQDN format.
  - `preference` integer, required: Preference value for the MX record. An unsigned 16-bit integer which specifies the preference given to this RR among others at the same owner. Lower values are preferred. The range of the value is 0 to 65535.
  - `ref` string: infoblox.ddi.wapi.objectref
  - `tags` object: The tags for the RecordMX in JSON format.
  - `ttl` integer: The Time To Live (TTL) value for the record. A 32-bit unsigned integer that represents the duration, in seconds, for which the RecordMX is valid (cached). Zero indicates that the RecordMX should not be cached.
  - `use_ttl` boolean: Use flag for: _ttl_. If set to _true_, the TTL value is used for the record. If set to _false_, the TTL value is inherited from the zone.
  - `view` string: The name of the DNS view in which the RecordMX resides. Example: "external".
  - `zone` string: The name of the zone in which the RecordMX resides. Example: "zone.com". If a view is not specified when searching by zone, the default view is used.

## Response `200`

PUT operation response

- string: infoblox.ddi.wapi.objectref

---

[API](https://skmtc.dev/infoblox/apis/dns-data-web-api.md) - [All operations](https://skmtc.dev/infoblox/apis/dns-data-web-api/llms.txt) - [OpenAPI document](https://skmtc.dev/infoblox/apis/dns-data-web-api/revisions/b4b272e5590c?raw)
