For me this is working also for library profiles. But make sure the library port profile is assigned to Global or lower level.
---------------------------------
Original Message:
Sent: May 22, 2026
From: Collin.Koss
Subject: RE: Use API to set port profile on switch interface
I tried this out and it worked for me, but only for a device level port profile. The API would error out when naming a library level port profile. @AA92 Give this a shot and let us know. Thanks Willem.
-------------------------------------------
Original Message:
Sent: May 22, 2026 06:48 AM
From: willembargeman
Subject: Use API to set port profile on switch interface
Hi,
The API to use here is: https://developer.arubanetworks.com/new-central-config/reference/updateethernetinterfacesinterfacebyid
The Port Profiles are (in most cases) defined in the Library. To assign a port profile you need to change the interface at Device Level. For this you need some information to update this via the API:
Hereby an example to push the port profile at device level.
URI:{api-gw}/network-config/v1alpha1/ethernet-interfaces/:name?object-type=LOCAL&scope-id=123456789&device-function=ACCESS_SWITCHbody:{ "name": "1/1/9", "sw-profile": "switches-collorlessport-CNAC"}
------------------------------
Willem Bargeman
Systems Engineer Aruba
ACEX #125
------------------------------
Original Message:
Sent: May 22, 2026 06:30 AM
From: AA92
Subject: Use API to set port profile on switch interface
My issue is that I want to use API to set this on one switch, not the whole site. Every 1/1/1 port under this site cannot be used with this profile.

If I check the API guides for interface profile, it only shows me the profiles that I have in library.
The PATCH/POST under Interface Profile, I'm able to change the Profile, but not able to apply an predefined Interface Profile to an specific port on one switch.