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.
https://app1pub.smappee.net/dev/v2/servicelocation/[SERVICELOCATIONID]/sharedusers
PUT
Authorization: Bearer [ACCESS_TOKEN]
[ACCESS_TOKEN] being the access token received from the Get token or Refresh token authentication calls.
{ "userName": "example" } |
The "userName" is required. If there is no user with that name an HTTP error 400 is returned.
Parameter | Type | Description |
---|---|---|
SERVICELOCATIONID | Path Parameter | The actual id of an accessible service location (see Get Servicelocations) |
Nothing is returned.
This call does not exist in this version
This call was introduced in this version
|