Skip to content

update_port_profile

Patch fields on an existing port profile.

Side effects:

  • Modifies the named profile in place. Every switch port currently using the profile picks up the new behaviour on the next provision (typically within seconds).
  • Changing native_networkconf_id may move powered devices to a different VLAN.
  • Mutates controller state. Use dry_run=True to preview the change without applying.
update_port_profile(profile_id="65f...", updates={"poe_mode": "off"})
ParameterTypeRequiredDefaultDescription
profile_idstringyesThe _id from list_port_profiles.
updatesobjectyesPartial profile record. Common keys: name, forward, poe_mode, native_networkconf_id, tagged_networkconf_ids.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".
dry_runbooleannofalsePreview the change without applying it. Returns the predicted change set.