Skip to main content
POST
/
v1
/
createUserSiteAssignments
Create user-site assignment
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>"
}

Authorizations

Authorization
string
header
required

JWT token obtained from /v1/requestToken endpoint

Body

application/json
userId
string
required

ID of the user to assign

siteId
string
required

ID of the site to assign the user to

Response

User-site assignment created successfully

success
boolean
message
string