{"type":"api","title":"Update Organization Config Template Switch Profile Port","meta":{"id":"/apps/pubhub/media/Meraki-Dashboard-API-v1-Documentation/9d30a16886a116eb6fb996e5d66f67d0df0da886/28b52581-f438-3451-9ea2-e3d65df40b84","info":{"title":"Meraki Dashboard API","description":"A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale.\n\n\u003e Date: 16 October, 2026\n\u003e\n\u003e [Recent Updates](https://meraki.io/whats-new/)\n\n---\n\n[API Documentation](https://meraki.io/api)\n\n[Community Support](https://meraki.io/community)\n\n[Meraki Homepage](https://www.meraki.com)\n","contact":{"name":"Meraki Developer Community","url":"https://meraki.io/community"},"version":"v1.75.1"},"security":[{"meraki_api_key":[]},{"bearerAuth":[]}],"tags":[{"name":"organizations"},{"name":"networks"},{"name":"devices"},{"name":"insight"},{"name":"wireless"},{"name":"camera"},{"name":"appliance"},{"name":"switch"},{"name":"cellularGateway"},{"name":"sm"},{"name":"sensor"},{"name":"administered"},{"name":"campusGateway"},{"name":"wirelessController"},{"name":"spaces"},{"name":"accessControlLists"},{"name":"accessPolicies"},{"name":"account"},{"name":"accounts"},{"name":"acls"},{"name":"actionBatches"},{"name":"adaptivePolicy"},{"name":"adaptivePolicyGroups"},{"name":"addresses"},{"name":"admins"},{"name":"aggregated"},{"name":"airMarshal"},{"name":"alertTypes"},{"name":"alerts"},{"name":"allowlist"},{"name":"alternateManagementInterface"},{"name":"analytics"},{"name":"api"},{"name":"apiRequests"},{"name":"apnsCert"},{"name":"appliances"},{"name":"applicationCategories"},{"name":"applicationUsage"},{"name":"applications"},{"name":"areas"},{"name":"arpInspection"},{"name":"arpTable"},{"name":"artifacts"},{"name":"assets"},{"name":"assignments"},{"name":"authenticationToken"},{"name":"authorities"},{"name":"autoLocate"},{"name":"autoRf"},{"name":"availabilities"},{"name":"bands"},{"name":"bandwidthUsageHistory"},{"name":"bgp"},{"name":"billing"},{"name":"blink"},{"name":"bluetooth"},{"name":"bluetoothClients"},{"name":"bonjourForwarding"},{"name":"boundaries"},{"name":"brandingPolicies"},{"name":"bulk"},{"name":"bulkCreate"},{"name":"bulkDelete"},{"name":"bulkUpdate"},{"name":"byBoundary"},{"name":"byClient"},{"name":"byCluster"},{"name":"byDevice"},{"name":"byEnergyUsage"},{"name":"byGroup"},{"name":"byInterval"},{"name":"byMetric"},{"name":"byModel"},{"name":"byNetwork"},{"name":"byPipeline"},{"name":"bySite"},{"name":"bySsid"},{"name":"byStatus"},{"name":"bySwitch"},{"name":"byType"},{"name":"byUsage"},{"name":"byUtilization"},{"name":"byVlan"},{"name":"bypassActivationLockAttempts"},{"name":"cableTest"},{"name":"callbacks"},{"name":"captures"},{"name":"categories"},{"name":"cellular"},{"name":"cellularFirewallRules"},{"name":"cellularUsageHistory"},{"name":"certificates"},{"name":"certs"},{"name":"changeHistory"},{"name":"channelUtilization"},{"name":"channelUtilizationHistory"},{"name":"channels"},{"name":"claim"},{"name":"claimKey"},{"name":"clientCountHistory"},{"name":"clients"},{"name":"clusters"},{"name":"commands"},{"name":"communicationPlans"},{"name":"compliance"},{"name":"configTemplates"},{"name":"configurationChanges"},{"name":"configure"},{"name":"configuredDevices"},{"name":"connectionStats"},{"name":"connections"},{"name":"connectivity"},{"name":"connectivityEvents"},{"name":"connectivityMonitoringDestinations"},{"name":"connectors"},{"name":"contentFiltering"},{"name":"controller"},{"name":"coterm"},{"name":"cpu"},{"name":"crls"},{"name":"current"},{"name":"customAnalytics"},{"name":"customPerformanceClasses"},{"name":"cycle"},{"name":"dailyConsumerMetrics"},{"name":"data"},{"name":"dataRateHistory"},{"name":"delegated"},{"name":"deltas"},{"name":"deployable"},{"name":"deployed"},{"name":"deployments"},{"name":"desktopLogs"},{"name":"details"},{"name":"detections"},{"name":"deviceCategories"},{"name":"deviceCommandLogs"},{"name":"deviceProfiles"},{"name":"deviceTypeGroupPolicies"},{"name":"dhcp"},{"name":"dhcpServerPolicy"},{"name":"discovery"},{"name":"disenrollments"},{"name":"dns"},{"name":"domains"},{"name":"doorLocks"},{"name":"downloadUrl"},{"name":"dscpTaggingOptions"},{"name":"dscpToCosMappings"},{"name":"eapOverride"},{"name":"earlyAccess"},{"name":"electronicShelfLabel"},{"name":"eligible"},{"name":"enrollments"},{"name":"entitlements"},{"name":"entries"},{"name":"eox"},{"name":"esims"},{"name":"ethernet"},{"name":"eventTypes"},{"name":"events"},{"name":"failedConnections"},{"name":"failover"},{"name":"features"},{"name":"fields"},{"name":"firewall"},{"name":"firewalledServices"},{"name":"firmware"},{"name":"firmwareUpgrades"},{"name":"floorPlans"},{"name":"gateways"},{"name":"geolocations"},{"name":"global"},{"name":"group"},{"name":"groupPolicies"},{"name":"groups"},{"name":"health"},{"name":"healthByTime"},{"name":"historical"},{"name":"history"},{"name":"hotspot20"},{"name":"httpServers"},{"name":"httpsInspection"},{"name":"httpsi"},{"name":"identities"},{"name":"identityPsks"},{"name":"idps"},{"name":"impacted"},{"name":"impactedDevice"},{"name":"inboundCellularFirewallRules"},{"name":"inboundFirewallRules"},{"name":"integrate"},{"name":"integration"},{"name":"integrations"},{"name":"interfaces"},{"name":"internetPolicies"},{"name":"intrusion"},{"name":"inventory"},{"name":"ipsec"},{"name":"ipv6"},{"name":"isolation"},{"name":"jobs"},{"name":"keys"},{"name":"l2"},{"name":"l3"},{"name":"l3FirewallRules"},{"name":"l7FirewallRules"},{"name":"lan"},{"name":"latencyHistory"},{"name":"latencyStats"},{"name":"latest"},{"name":"leds"},{"name":"licenses"},{"name":"licensing"},{"name":"lines"},{"name":"linkAggregations"},{"name":"linkLayer"},{"name":"live"},{"name":"liveTools"},{"name":"lldpCdp"},{"name":"load"},{"name":"local"},{"name":"localOverrides"},{"name":"location"},{"name":"loginSecurity"},{"name":"logs"},{"name":"lookups"},{"name":"lossAndLatencyHistory"},{"name":"macTable"},{"name":"malware"},{"name":"managementInterface"},{"name":"manufacturers"},{"name":"masks"},{"name":"mdns"},{"name":"me"},{"name":"memory"},{"name":"merakiAuthUsers"},{"name":"meshStatuses"},{"name":"migrations"},{"name":"mode"},{"name":"models"},{"name":"monitor"},{"name":"monitoredMediaServers"},{"name":"moves"},{"name":"mqtt"},{"name":"mqttBrokers"},{"name":"mtu"},{"name":"multicast"},{"name":"multicastForwarding"},{"name":"multicastRouting"},{"name":"nat"},{"name":"netflow"},{"name":"networkAdapters"},{"name":"networkHealth"},{"name":"objectDetectionModels"},{"name":"onboarding"},{"name":"oneToManyNatRules"},{"name":"oneToOneNatRules"},{"name":"openRoaming"},{"name":"openapiSpec"},{"name":"optIns"},{"name":"order"},{"name":"orders"},{"name":"ospf"},{"name":"override"},{"name":"overrides"},{"name":"overview"},{"name":"overviews"},{"name":"owe"},{"name":"packetCapture"},{"name":"packetLoss"},{"name":"packets"},{"name":"payloadTemplates"},{"name":"peers"},{"name":"performance"},{"name":"performanceHistory"},{"name":"permissions"},{"name":"pii"},{"name":"piiKeys"},{"name":"ping"},{"name":"pingDevice"},{"name":"pipelines"},{"name":"policies"},{"name":"policy"},{"name":"policyObjects"},{"name":"portForwardingRules"},{"name":"portSchedules"},{"name":"ports"},{"name":"power"},{"name":"powerModules"},{"name":"prefixes"},{"name":"priorities"},{"name":"profiles"},{"name":"provisioning"},{"name":"qosRules"},{"name":"qualityAndRetention"},{"name":"qualityRetentionProfiles"},{"name":"radio"},{"name":"radsec"},{"name":"ratePlans"},{"name":"readings"},{"name":"receivers"},{"name":"recent"},{"name":"records"},{"name":"redundancy"},{"name":"regions"},{"name":"relationships"},{"name":"rendezvousPoints"},{"name":"requests"},{"name":"responseCodes"},{"name":"rest"},{"name":"restrictions"},{"name":"rfProfiles"},{"name":"roles"},{"name":"rollbacks"},{"name":"routing"},{"name":"routingTable"},{"name":"rrm"},{"name":"ruleGroups"},{"name":"rules"},{"name":"rulesets"},{"name":"saml"},{"name":"samlRoles"},{"name":"sase"},{"name":"scanning"},{"name":"schedules"},{"name":"sdwan"},{"name":"search"},{"name":"security"},{"name":"securityCenters"},{"name":"seen"},{"name":"sense"},{"name":"sentry"},{"name":"servers"},{"name":"serviceProviders"},{"name":"settings"},{"name":"signalQualityHistory"},{"name":"sims"},{"name":"singleLan"},{"name":"siteToSite"},{"name":"siteToSiteVpn"},{"name":"sites"},{"name":"slas"},{"name":"smDevicesForKey"},{"name":"smOwnersForKey"},{"name":"snmp"},{"name":"softwares"},{"name":"splash"},{"name":"splashAuthorizationStatus"},{"name":"splashLoginAttempts"},{"name":"split"},{"name":"ssids"},{"name":"stacks"},{"name":"staged"},{"name":"stages"},{"name":"staticRoutes"},{"name":"statics"},{"name":"stats"},{"name":"status"},{"name":"statuses"},{"name":"stormControl"},{"name":"stp"},{"name":"subnetPool"},{"name":"subnets"},{"name":"subscription"},{"name":"subscriptions"},{"name":"summaries"},{"name":"summary"},{"name":"summaryConsumerMetrics"},{"name":"sustainability"},{"name":"swap"},{"name":"swaps"},{"name":"switches"},{"name":"syslog"},{"name":"syslogServers"},{"name":"system"},{"name":"targetGroups"},{"name":"targets"},{"name":"taxonomy"},{"name":"themes"},{"name":"thirdPartyVPNPeers"},{"name":"throughputTest"},{"name":"top"},{"name":"topology"},{"name":"towers"},{"name":"traffic"},{"name":"trafficAnalysis"},{"name":"trafficHistory"},{"name":"trafficShaping"},{"name":"transceivers"},{"name":"trustedAccessConfigs"},{"name":"trustedServers"},{"name":"tunnelable"},{"name":"tunneling"},{"name":"types"},{"name":"umbrella"},{"name":"update"},{"name":"upgrades"},{"name":"uplink"},{"name":"uplinkBandwidth"},{"name":"uplinkSelection"},{"name":"uplinks"},{"name":"uplinksLossAndLatency"},{"name":"usage"},{"name":"usageHistories"},{"name":"usageHistory"},{"name":"userAccessDevices"},{"name":"utilization"},{"name":"v4"},{"name":"video"},{"name":"videoLink"},{"name":"vlanAssignments"},{"name":"vlanProfiles"},{"name":"vlans"},{"name":"vmx"},{"name":"vpn"},{"name":"vpnExclusions"},{"name":"vpnFirewallRules"},{"name":"vppAccounts"},{"name":"vrfs"},{"name":"wakeOnLan"},{"name":"warmSpare"},{"name":"warnings"},{"name":"webhookTests"},{"name":"webhooks"},{"name":"wirelessControllers"},{"name":"wirelessProfiles"},{"name":"wlanLists"},{"name":"xdr"},{"name":"zigbee"},{"name":"zones"}],"x-parser-conf":{"exampleAsDefault":true,"expand":3,"groupBy":{"$remoteModule":"config/group_platform.js"},"httpBearer":{"bearerToken":"75dd5334bef4d2bc96f26138c163c0a3fa0b5ca6"},"labelConfig":{"endpoint":{"field":"operationId","format":"startCase"}},"meta":{"useProxy":true},"overview":{"markdownPath":"docs/overview.md"},"sampleCode":{"python":{"folder":"meraki/sdk/python","highlight":"python","name":"Meraki Python Library"}},"serverConfig":true,"sortBy":{"$remoteModule":"config/sort_by.js"},"theme":"meraki","variables":{"networkId":"N_784752235069315754","organizationId":"1215707","serial":"QBSB-VQ3J-XZ54"}},"openapi":"3.0.1","servers":[{"url":"https://api.meraki.com/{basePath}","variables":{"basePath":{"default":"api/v1"}}}],"securitySchemes":{"meraki_api_key":{"type":"apiKey","name":"X-Cisco-Meraki-API-Key","in":"header"},"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key"},"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)"}}}}}},"spec":{"description":"Update a switch template port","operationId":"updateOrganizationConfigTemplateSwitchProfilePort","parameters":[{"name":"organizationId","in":"path","description":"Organization ID","schema":{"type":"string"},"required":true},{"name":"configTemplateId","in":"path","description":"Config template ID","schema":{"type":"string"},"required":true},{"name":"profileId","in":"path","description":"Profile ID","schema":{"type":"string"},"required":true},{"name":"portId","in":"path","description":"Port ID","schema":{"type":"string"},"required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","nullable":true,"description":"The name of the switch template port. Dashboard displays this value as the port description. For Cisco Catalyst switches running IOS XE, it corresponds to the configured interface description."},"tags":{"type":"array","items":{"type":"string"},"description":"The list of tags of the switch template port."},"enabled":{"type":"boolean","description":"The status of the switch template port."},"poeEnabled":{"type":"boolean","description":"The PoE status of the switch template port."},"perpetualPoe":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Perpetual PoE is enabled on the switch template port. Perpetual PoE can only be enabled on ports that support PoE HA."}},"description":"Perpetual PoE settings for the switch template port."},"fastPoe":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Fast PoE is enabled on the switch template port. Fast PoE requires Perpetual PoE and can only be enabled on ports that support PoE HA."}},"description":"Fast PoE settings for the switch template port."},"type":{"type":"string","enum":["access","dad","routed","stack","svl","trunk"],"description":"The type of the switch template port ('access', 'trunk', 'stack', 'routed', 'svl' or 'dad')."},"vlan":{"type":"integer","nullable":true,"description":"The VLAN of the switch template port. For a trunk port, this is the native VLAN. A null value will clear the value set for trunk ports."},"voiceVlan":{"type":"integer","nullable":true,"description":"The voice VLAN of the switch template port. Only applicable to access ports."},"allowedVlans":{"type":"string","description":"The VLANs allowed on the switch template port. Only applicable to trunk ports."},"isolationEnabled":{"type":"boolean","description":"The isolation status of the switch template port."},"rstpEnabled":{"type":"boolean","description":"The rapid spanning tree protocol status."},"stpGuard":{"type":"string","enum":["bpdu guard","disabled","loop guard","root guard"],"description":"The state of the STP guard ('disabled', 'root guard', 'bpdu guard' or 'loop guard')."},"stpPortFastTrunk":{"type":"boolean","description":"The state of STP PortFast Trunk on the switch template port."},"linkNegotiation":{"type":"string","description":"The link speed for the switch template port."},"portScheduleId":{"type":"string","nullable":true,"description":"The ID of the port schedule. A value of null will clear the port schedule."},"udld":{"type":"string","enum":["Alert only","Enforce"],"description":"The action to take when Unidirectional Link is detected (Alert only, Enforce). Default configuration is Alert only."},"accessPolicyType":{"type":"string","enum":["Custom access policy","MAC allow list","Open","Sticky MAC allow list"],"description":"The type of the access policy of the switch template port. Only applicable to access ports. Can be one of 'Open', 'Custom access policy', 'MAC allow list' or 'Sticky MAC allow list'."},"accessPolicyNumber":{"type":"integer","description":"The number of a custom access policy to configure on the switch template port. Only applicable when 'accessPolicyType' is 'Custom access policy'."},"macAllowList":{"type":"array","items":{"type":"string"},"description":"Only devices with MAC addresses specified in this list will have access to this port. Up to 20 MAC addresses can be defined. Only applicable when 'accessPolicyType' is 'MAC allow list'."},"macWhitelistLimit":{"type":"integer","nullable":true,"description":"The maximum number of MAC addresses for regular MAC allow list. Only applicable when 'accessPolicyType' is 'MAC allow list'.\n Note: Config only supported on verions greater than ms18 only for classic switches."},"stickyMacAllowList":{"type":"array","items":{"type":"string"},"description":"The initial list of MAC addresses for sticky Mac allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'."},"stickyMacAllowListLimit":{"type":"integer","description":"The maximum number of MAC addresses for sticky MAC allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'."},"stormControlEnabled":{"type":"boolean","description":"The storm control status of the switch template port."},"flexibleStackingEnabled":{"type":"boolean","description":"For supported switches (e.g. MS420/MS425), whether or not the port has flexible stacking enabled."},"daiTrusted":{"type":"boolean","description":"If true, ARP packets for this port will be considered trusted, and Dynamic ARP Inspection will allow the traffic."},"profile":{"type":"object","properties":{"enabled":{"type":"boolean","description":"When enabled, override this port's configuration with a port profile."},"id":{"type":"string","description":"When enabled, the ID of the port profile used to override the port's configuration.","nullable":true},"iname":{"type":"string","description":"When enabled, the IName of the profile.","nullable":true}},"description":"Profile attributes"},"dot3az":{"type":"object","properties":{"enabled":{"type":"boolean","description":"The Energy Efficient Ethernet status of the switch template port."}},"description":"dot3az settings for the port"},"highSpeed":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the high-speed logical port is enabled."}},"description":"High speed port enablement settings for a high-speed logical port."}},"example":{"name":"My switch port","tags":["tag1","tag2"],"enabled":true,"poeEnabled":true,"perpetualPoe":{"enabled":true},"fastPoe":{"enabled":true},"type":"access","vlan":10,"voiceVlan":20,"allowedVlans":"1,3,5-10","isolationEnabled":false,"rstpEnabled":true,"stpGuard":"disabled","stpPortFastTrunk":false,"linkNegotiation":"Auto negotiate","portScheduleId":"1234","udld":"Alert only","accessPolicyType":"Sticky MAC allow list","accessPolicyNumber":2,"macAllowList":["34:56:fe:ce:8e:a0","34:56:fe:ce:8e:a1"],"macWhitelistLimit":10,"stickyMacAllowList":["34:56:fe:ce:8e:b0","34:56:fe:ce:8e:b1"],"stickyMacAllowListLimit":5,"stormControlEnabled":true,"flexibleStackingEnabled":true,"daiTrusted":false,"profile":{"enabled":false,"id":"1284392014819","iname":"iname"},"dot3az":{"enabled":false},"highSpeed":{"enabled":false}}}}},"required":false},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"portId":{"type":"string","description":"The identifier of the switch template port."},"name":{"type":"string","description":"The name of the switch template port. Dashboard displays this value as the port description. For Cisco Catalyst switches running IOS XE, it corresponds to the configured interface description."},"tags":{"type":"array","items":{"type":"string"},"description":"The list of tags of the switch template port."},"enabled":{"type":"boolean","description":"The status of the switch template port."},"poeEnabled":{"type":"boolean","description":"The PoE status of the switch template port."},"perpetualPoe":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Perpetual PoE is enabled on the switch template port. Perpetual PoE can only be enabled on ports that support PoE HA."}},"description":"Perpetual PoE settings for the switch template port."},"fastPoe":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether Fast PoE is enabled on the switch template port. Fast PoE requires Perpetual PoE and can only be enabled on ports that support PoE HA."}},"description":"Fast PoE settings for the switch template port."},"type":{"type":"string","enum":["access","dad","routed","stack","svl","trunk"],"description":"The type of the switch template port ('access', 'trunk', 'stack', 'routed', 'svl' or 'dad')."},"vlan":{"type":"integer","description":"The VLAN of the switch template port. For a trunk port, this is the native VLAN. A null value will clear the value set for trunk ports."},"voiceVlan":{"type":"integer","description":"The voice VLAN of the switch template port. Only applicable to access ports."},"allowedVlans":{"type":"string","description":"The VLANs allowed on the switch template port. Only applicable to trunk ports."},"isolationEnabled":{"type":"boolean","description":"The isolation status of the switch template port."},"rstpEnabled":{"type":"boolean","description":"The rapid spanning tree protocol status."},"stpGuard":{"type":"string","enum":["bpdu guard","disabled","loop guard","root guard"],"description":"The state of the STP guard ('disabled', 'root guard', 'bpdu guard' or 'loop guard')."},"stpPortFastTrunk":{"type":"boolean","description":"The state of STP PortFast Trunk on the switch template port."},"linkNegotiation":{"type":"string","description":"The link speed for the switch template port."},"linkNegotiationCapabilities":{"type":"array","items":{"type":"string"},"description":"Available link speeds for the switch template port."},"portScheduleId":{"type":"string","description":"The ID of the port schedule. A value of null will clear the port schedule."},"schedule":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the port schedule."},"name":{"type":"string","description":"The name of the port schedule."}},"description":"The port schedule data."},"udld":{"type":"string","enum":["Alert only","Enforce"],"description":"The action to take when Unidirectional Link is detected. For monitor-only Catalyst ports, N/A indicates UDLD is not configured and Disabled indicates UDLD is explicitly disabled. Default configuration is Alert only."},"accessPolicyType":{"type":"string","enum":["Custom access policy","MAC allow list","Open","Sticky MAC allow list"],"description":"The type of the access policy of the switch template port. Only applicable to access ports. Can be one of 'Open', 'Custom access policy', 'MAC allow list' or 'Sticky MAC allow list'."},"accessPolicyNumber":{"type":"integer","description":"The number of a custom access policy to configure on the switch template port. Only applicable when 'accessPolicyType' is 'Custom access policy'."},"macAllowList":{"type":"array","items":{"type":"string"},"description":"Only devices with MAC addresses specified in this list will have access to this port. Up to 20 MAC addresses can be defined. Only applicable when 'accessPolicyType' is 'MAC allow list'."},"macWhitelistLimit":{"type":"integer","description":"The maximum number of MAC addresses for regular MAC allow list. Only applicable when 'accessPolicyType' is 'MAC allow list'.\n Note: Config only supported on verions greater than ms18 only for classic switches."},"stickyMacAllowList":{"type":"array","items":{"type":"string"},"description":"The initial list of MAC addresses for sticky Mac allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'."},"stickyMacAllowListLimit":{"type":"integer","description":"The maximum number of MAC addresses for sticky MAC allow list. Only applicable when 'accessPolicyType' is 'Sticky MAC allow list'."},"stormControlEnabled":{"type":"boolean","description":"The storm control status of the switch template port."},"flexibleStackingEnabled":{"type":"boolean","description":"For supported switches (e.g. MS420/MS425), whether or not the port has flexible stacking enabled."},"daiTrusted":{"type":"boolean","description":"If true, ARP packets for this port will be considered trusted, and Dynamic ARP Inspection will allow the traffic."},"profile":{"type":"object","properties":{"enabled":{"type":"boolean","description":"When enabled, override this port's configuration with a port profile."},"id":{"type":"string","description":"When enabled, the ID of the port profile used to override the port's configuration."},"iname":{"type":"string","description":"When enabled, the IName of the profile."}},"description":"Profile attributes"},"module":{"type":"object","properties":{"model":{"type":"string","description":"The model of the expansion module."},"serial":{"type":"string","description":"The serial of the module."},"slot":{"type":"integer","description":"The slot number of the module."}},"description":"Expansion module"},"mirror":{"type":"object","properties":{"mode":{"type":"string","enum":["Destination port","Not mirroring traffic","Source port"],"description":"The port mirror mode. Can be one of ('Destination port', 'Source port' or 'Not mirroring traffic')."}},"description":"Port mirror"},"dot3az":{"type":"object","properties":{"enabled":{"type":"boolean","description":"The Energy Efficient Ethernet status of the switch template port."}},"description":"dot3az settings for the port"},"highSpeed":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether the high-speed logical port is enabled."}},"description":"High speed port enablement settings for a high-speed logical port."}}},"example":{"portId":"1","name":"My switch port","tags":["tag1","tag2"],"enabled":true,"poeEnabled":true,"perpetualPoe":{"enabled":true},"fastPoe":{"enabled":true},"type":"access","vlan":10,"voiceVlan":20,"allowedVlans":"1,3,5-10","isolationEnabled":false,"rstpEnabled":true,"stpGuard":"disabled","stpPortFastTrunk":false,"linkNegotiation":"Auto negotiate","linkNegotiationCapabilities":["Auto negotiate","1 Gigabit full duplex (auto)"],"portScheduleId":"1234","schedule":{"id":"1234","name":"Port Schedule"},"udld":"Alert only","accessPolicyType":"Sticky MAC allow list","accessPolicyNumber":2,"macAllowList":["34:56:fe:ce:8e:a0","34:56:fe:ce:8e:a1"],"macWhitelistLimit":10,"stickyMacAllowList":["34:56:fe:ce:8e:b0","34:56:fe:ce:8e:b1"],"stickyMacAllowListLimit":5,"stormControlEnabled":true,"flexibleStackingEnabled":true,"daiTrusted":false,"profile":{"enabled":false,"id":"1284392014819","iname":"iname"},"module":{"model":"MA-MOD-4X10G","serial":"3_MA-MOD-4X10G","slot":1},"mirror":{"mode":"Not mirroring traffic"},"dot3az":{"enabled":false},"highSpeed":{"enabled":false}}}}}},"security":[{"oauth2":["switch:config:write"]}],"summary":"Update a switch template port","tags":["switch","configure","configTemplates","profiles","ports"],"__originalOperationId":"updateOrganizationConfigTemplateSwitchProfilePort","method":"put","path":"/organizations/{organizationId}/configTemplates/{configTemplateId}/switch/profiles/{profileId}/ports/{portId}","sampleCode":{"Meraki Python Library":{"code":"import meraki\n\n# Defining your API key as a variable in source code is discouraged.\n# This API key is for a read-only docs-specific environment.\n# In your own code, use an environment variable as shown under the Usage section\n# @ https://github.com/meraki/dashboard-api-python/\n\nAPI_KEY = 'your-key-here'\n\ndashboard = meraki.DashboardAPI(API_KEY)\n\norganization_id = '549236'\nconfig_template_id = ''\nprofile_id = ''\nport_id = ''\n\nresponse = dashboard.switch.updateOrganizationConfigTemplateSwitchProfilePort(\n organization_id, config_template_id, profile_id, port_id, \n name='My switch port', \n tags=['tag1', 'tag2'], \n enabled=True, \n poeEnabled=True, \n type='access', \n vlan=10, \n voiceVlan=20, \n allowedVlans='1,3,5-10', \n isolationEnabled=False, \n rstpEnabled=True, \n stpGuard='disabled', \n linkNegotiation='Auto negotiate', \n portScheduleId='1234', \n udld='Alert only', \n accessPolicyType='Sticky MAC allow list', \n accessPolicyNumber=2, \n macAllowList=['34:56:fe:ce:8e:a0', '34:56:fe:ce:8e:a1'], \n macWhitelistLimit=10, \n stickyMacAllowList=['34:56:fe:ce:8e:b0', '34:56:fe:ce:8e:b1'], \n stickyMacAllowListLimit=5, \n stormControlEnabled=True, \n flexibleStackingEnabled=True, \n daiTrusted=False, \n profile={'enabled': False, 'id': '1284392014819', 'iname': 'iname'}, \n dot3az={'enabled': False}\n)\n\nprint(response)","highlight":"python"}}}}