REST API Configuration, apply securityNamespace

Hi,

I created a new hardware device and a camera under it using a Python script with ?task=AddHardware.

After that, I added the new camera to a Camera Group. Now I would like to configure permissions/security for that camera, such as “Read”, “Edit”, and “Playback” similar to the checkboxes available in the Management Client.

I found the securityNamespace endpoint using GET /securityNamespace, but I could not find any POST, PATCH, or other method that actually allows modifying those permissions.

Is there an API endpoint or recommended way to programmatically set these security permissions?

Thanks in advance for the help!

On the Camera you need to use the task "ChangeSecurityPermissions”

Find the documentation here: task=ChangeSecurityPermissions

Better yet, I think this will be better guidance; see this answered topic: Using the API Gateway REST API how can I see what users/ad groups have access to which cameras?