Hi Matthias

The role is 'category_id'.

You can get the relevant category_id from a GET on api path '/node_categories'.

Tony R


14.08.24 at 10:56am from Matthias Baer via PacketFence-users:

>I'm trying to set the role of a node to REJECT using the REST-API. However, 
>according to the API documentation, a PATCH or PUT request to 
>/api/v1/node/<node_id> doesn't contain the role field. The only API endpoint 
>that seems to set roles to nodes is /api/v1/nodes/bulk_apply_role. But that 
>would set the role for >all nodes.

>Any idea how I can set the role for a single node?

>Cheers,
>Matthias
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to