cURL
curl --request POST \ --url https://api.voltview.co.uk/v1/createUserSiteAssignments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "siteId": "<string>" } '
{ "success": true, "message": "<string>" }
Assign a user to a specific site. Requires admin permissions.
JWT token obtained from /v1/requestToken endpoint
ID of the user to assign
ID of the site to assign the user to
User-site assignment created successfully