A non-buildin-admin user cannot change configuration using SonicWall API directly.
To change config by a non-buildin-admin user
Authentication - POST request using endpoint /api/sonicos/auth.
For details on Authentication, refer API Authentication.
Start Management - POST request using endpoint /api/sonicos/start-management.
For details on entering the management mode, refer API: Start Management.
The return code of this step indicates if the non built-in admin user can enter to config mode or not. If yes, send config-mode to start config.
Enter Config Mode - POST request using endpoint /api/sonicos/config-mode.
For details on configuration modes, refer API: Config Mode.
Change config via different APIs (POST/PUT/PATCH/DELETE).
Commit the change: POST request using endpoint /api/sonicos/config/pending.
For details on committing the configuration, refer API: Config - Pending.