Share access to service location
Description
Shares access to an existing service location. The user making the request MUST have role "multisite_api" or "multisite_helpdesk". If this is not the case, an HTTP error 403 is returned. A second call with the same userName but a different role will update the role of the user, restricting the user's access or broadening it depending on the previous and new role that was specified.
Resource URL
https://app1pub.smappee.net/dev/v2/servicelocation/[SERVICELOCATIONID]/sharedusers
HTTP method
PUT
HTTP header
Authorization: Bearer [ACCESS_TOKEN]
 [ACCESS_TOKEN] being the access token received from the Get token or Refresh token authentication calls.
Http body
{
"userName": "example"
}
The "userName" is required. If there is no user with that name an HTTP error 400 is returned.
Parameters
Parameter | Type | Description |
---|---|---|
SERVICELOCATIONID | Path Parameter | The actual id of an accessible service location (see Get Servicelocations) |
Result
Nothing is returned.
Versioning
Version 1 (v1)
This call does not exist in this version
Version 2 (v2)
This call was introduced in this version