# Update Device Management Interface

```http
PUT /devices/{serial}/managementInterface
```

API: Meraki Dashboard API (version 1.77.0)

Operation ID: updateDeviceManagementInterface

Tags: devices, configure, managementInterface

## Description

Update the management interface settings for a device

## Servers

```json
[
  {
    "url": "https://api.meraki.com/{basePath}",
    "variables": {
      "basePath": {
        "default": "api/v1"
      }
    }
  }
]
```

## Authentication

Satisfy any one of the following alternatives. Within each alternative, all listed schemes are required. An empty object allows anonymous access.

```json
[
  {
    "oauth2": [
      "dashboard:general:config:write"
    ]
  }
]
```

### Security schemes

```json
{
  "oauth2": {
    "type": "oauth2",
    "description": "This API uses OAuth 2 with the authorization code grant flow. [More info](https://developer.cisco.com/meraki/api-v1/authorization/)",
    "flows": {
      "authorizationCode": {
        "authorizationUrl": "https://as.meraki.com/oauth/authorize",
        "tokenUrl": "https://as.meraki.com/oauth/token",
        "scopes": {
          "camera:config:read": "Cameras (MV)",
          "camera:config:write": "Cameras (MV)",
          "camera:telemetry:read": "Cameras (MV)",
          "camera:telemetry:write": "Cameras (MV)",
          "dashboard:general:config:read": "Entire dashboard, excluding identity and access management",
          "dashboard:general:config:write": "Entire dashboard, excluding identity and access management",
          "dashboard:general:telemetry:read": "Entire dashboard, excluding identity and access management",
          "dashboard:general:telemetry:write": "Entire dashboard, excluding identity and access management",
          "dashboard:iam:config:read": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:config:write": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:telemetry:read": "Dashboard related to identity and access management, including early access features",
          "dashboard:iam:telemetry:write": "Dashboard related to identity and access management, including early access features",
          "dashboard:licensing:config:read": "Licensing",
          "dashboard:licensing:config:write": "Licensing",
          "dashboard:licensing:telemetry:read": "Licensing",
          "dashboard:licensing:telemetry:write": "Licensing",
          "iot:gateway:general:config:read": "Sensor Connect (IoT Control)",
          "iot:gateway:general:config:write": "Sensor Connect (IoT Control)",
          "iot:gateway:general:telemetry:read": "Sensor Connect (IoT Control)",
          "iot:gateway:general:telemetry:write": "Sensor Connect (IoT Control)",
          "iot:gateway:onboarding:config:read": "Sensor Connect (IoT Onboarding)",
          "iot:gateway:onboarding:config:write": "Sensor Connect (IoT Onboarding)",
          "policy:config:read": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:config:write": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:telemetry:read": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "policy:telemetry:write": "Provides granular authorization over all global policy resources including policy objects, adaptive policy, and Organization Group Policy",
          "sdwan:config:read": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:config:write": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:telemetry:read": "Secure SD-WAN (MX including MXIGZ)",
          "sdwan:telemetry:write": "Secure SD-WAN (MX including MXIGZ)",
          "sensor:config:read": "Sensors (MT)",
          "sensor:config:write": "Sensors (MT)",
          "sensor:telemetry:read": "Sensors (MT)",
          "sensor:telemetry:write": "Sensors (MT)",
          "sm:config:read": "Endpoint Management (SM)",
          "sm:config:write": "Endpoint Management (SM)",
          "sm:telemetry:read": "Endpoint Management (SM)",
          "sm:telemetry:write": "Endpoint Management (SM)",
          "switch:config:read": "Switches (MS)",
          "switch:config:write": "Switches (MS)",
          "switch:telemetry:read": "Switches (MS)",
          "switch:telemetry:write": "Switches (MS)",
          "wireless:config:read": "Wireless (MR)",
          "wireless:config:write": "Wireless (MR)",
          "wireless:telemetry:read": "Wireless (MR)",
          "wireless:telemetry:write": "Wireless (MR)"
        }
      }
    }
  }
}
```

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| serial | path | yes | string | Serial |

### Parameter definitions

```json
[
  {
    "name": "serial",
    "in": "path",
    "description": "Serial",
    "schema": {
      "type": "string"
    },
    "required": true
  }
]
```

## Request body

Required: no

```json
{
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "wan1": {
            "type": "object",
            "properties": {
              "wanEnabled": {
                "type": "string",
                "enum": [
                  "disabled",
                  "enabled",
                  "not configured"
                ],
                "description": "Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'."
              },
              "usingStaticIp": {
                "type": "boolean",
                "description": "Configure the interface to have static IP settings or use DHCP."
              },
              "staticIp": {
                "type": "string",
                "description": "The IP the device should use on the WAN."
              },
              "staticGatewayIp": {
                "type": "string",
                "description": "The IP of the gateway on the WAN."
              },
              "staticSubnetMask": {
                "type": "string",
                "description": "The subnet mask for the WAN."
              },
              "staticDns": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Up to two DNS IPs."
              },
              "vlan": {
                "type": "integer",
                "description": "The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.",
                "nullable": true
              }
            },
            "description": "WAN 1 settings"
          },
          "wan2": {
            "type": "object",
            "properties": {
              "wanEnabled": {
                "type": "string",
                "enum": [
                  "disabled",
                  "enabled",
                  "not configured"
                ],
                "description": "Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'."
              },
              "usingStaticIp": {
                "type": "boolean",
                "description": "Configure the interface to have static IP settings or use DHCP."
              },
              "staticIp": {
                "type": "string",
                "description": "The IP the device should use on the WAN."
              },
              "staticGatewayIp": {
                "type": "string",
                "description": "The IP of the gateway on the WAN."
              },
              "staticSubnetMask": {
                "type": "string",
                "description": "The subnet mask for the WAN."
              },
              "staticDns": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Up to two DNS IPs."
              },
              "vlan": {
                "type": "integer",
                "description": "The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false.",
                "nullable": true
              }
            },
            "description": "WAN 2 settings (only for MX devices)"
          }
        },
        "example": {
          "wan1": {
            "wanEnabled": "not configured",
            "usingStaticIp": true,
            "staticIp": "1.2.3.4",
            "staticGatewayIp": "1.2.3.1",
            "staticSubnetMask": "255.255.255.0",
            "staticDns": [
              "1.2.3.2",
              "1.2.3.3"
            ],
            "vlan": 7
          },
          "wan2": {
            "wanEnabled": "enabled",
            "usingStaticIp": false,
            "staticIp": "1.2.3.4",
            "staticGatewayIp": "1.2.3.1",
            "staticSubnetMask": "255.255.255.0",
            "staticDns": [
              "1.2.3.2",
              "1.2.3.3"
            ],
            "vlan": 2
          }
        }
      }
    }
  },
  "required": false
}
```

## Responses

### 200

Successful operation

```json
{
  "description": "Successful operation",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "ddnsHostnames": {
            "type": "object",
            "properties": {
              "activeDdnsHostname": {
                "type": "string",
                "description": "Active dynamic DNS hostname."
              },
              "ddnsHostnameWan1": {
                "type": "string",
                "description": "WAN 1 dynamic DNS hostname."
              },
              "ddnsHostnameWan2": {
                "type": "string",
                "description": "WAN 2 dynamic DNS hostname."
              }
            },
            "description": "Dynamic DNS hostnames."
          },
          "wan1": {
            "type": "object",
            "properties": {
              "wanEnabled": {
                "type": "string",
                "description": "Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'."
              },
              "usingStaticIp": {
                "type": "boolean",
                "description": "Configure the interface to have static IP settings or use DHCP."
              },
              "staticIp": {
                "type": "string",
                "description": "The IP the device should use on the WAN."
              },
              "staticSubnetMask": {
                "type": "string",
                "description": "The subnet mask for the WAN."
              },
              "staticGatewayIp": {
                "type": "string",
                "description": "The IP of the gateway on the WAN."
              },
              "staticDns": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Up to two DNS IPs."
              },
              "vlan": {
                "type": "integer",
                "description": "The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false."
              },
              "vrf": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the VRF.",
                    "nullable": true
                  }
                },
                "description": "VRF associated with the management interface. If not provided, the default VRF is used.",
                "nullable": true
              }
            },
            "description": "WAN 1 settings"
          },
          "wan2": {
            "type": "object",
            "properties": {
              "wanEnabled": {
                "type": "string",
                "description": "Enable or disable the interface (only for MX devices). Valid values are 'enabled', 'disabled', and 'not configured'."
              },
              "usingStaticIp": {
                "type": "boolean",
                "description": "Configure the interface to have static IP settings or use DHCP."
              },
              "staticIp": {
                "type": "string",
                "description": "The IP the device should use on the WAN."
              },
              "staticSubnetMask": {
                "type": "string",
                "description": "The subnet mask for the WAN."
              },
              "staticGatewayIp": {
                "type": "string",
                "description": "The IP of the gateway on the WAN."
              },
              "staticDns": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Up to two DNS IPs."
              },
              "vlan": {
                "type": "integer",
                "description": "The VLAN that management traffic should be tagged with. Applies whether usingStaticIp is true or false."
              },
              "vrf": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "The name of the VRF.",
                    "nullable": true
                  }
                },
                "description": "VRF associated with the management interface. If not provided, the default VRF is used.",
                "nullable": true
              }
            },
            "description": "WAN 2 settings (only for MX devices)"
          }
        }
      },
      "example": {
        "ddnsHostnames": {
          "activeDdnsHostname": "mx1-sample.dynamic-m.com",
          "ddnsHostnameWan1": "mx1-sample-1.dynamic-m.com",
          "ddnsHostnameWan2": "mx1-sample-2.dynamic-m.com"
        },
        "wan1": {
          "wanEnabled": "not configured",
          "usingStaticIp": true,
          "staticIp": "1.2.3.4",
          "staticSubnetMask": "255.255.255.0",
          "staticGatewayIp": "1.2.3.1",
          "staticDns": [
            "1.2.3.2",
            "1.2.3.3"
          ],
          "vlan": 7,
          "vrf": {
            "name": "Mgmt-vrf"
          }
        },
        "wan2": {
          "wanEnabled": "enabled",
          "usingStaticIp": false,
          "staticIp": "1.2.3.4",
          "staticSubnetMask": "255.255.255.0",
          "staticGatewayIp": "1.2.3.1",
          "staticDns": [
            "1.2.3.2",
            "1.2.3.3"
          ],
          "vlan": 2,
          "vrf": {
            "name": "Mgmt-vrf"
          }
        }
      }
    }
  }
}
```

## Code samples

### Meraki Python Library

```python
import meraki

# Defining your API key as a variable in source code is discouraged.
# This API key is for a read-only docs-specific environment.
# In your own code, use an environment variable as shown under the Usage section
# @ https://github.com/meraki/dashboard-api-python/

API_KEY = 'your-key-here'

dashboard = meraki.DashboardAPI(API_KEY)

serial = 'Q2QN-9J8L-SLPD'

response = dashboard.devices.updateDeviceManagementInterface(
    serial, 
    wan1={'wanEnabled': 'not configured', 'usingStaticIp': True, 'staticIp': '1.2.3.4', 'staticGatewayIp': '1.2.3.1', 'staticSubnetMask': '255.255.255.0', 'staticDns': ['1.2.3.2', '1.2.3.3'], 'vlan': 7}, 
    wan2={'wanEnabled': 'enabled', 'usingStaticIp': False, 'staticIp': '1.2.3.4', 'staticGatewayIp': '1.2.3.1', 'staticSubnetMask': '255.255.255.0', 'staticDns': ['1.2.3.2', '1.2.3.3'], 'vlan': 2}
)

print(response)
```

## Additional OpenAPI fields

```json
{
  "__originalOperationId": "updateDeviceManagementInterface"
}
```
