- Updating permission values and user role
Get location users
Remove the user from the location
Get effective permissions for the authenticated Business User
Getting a list of user roles
Getting a list of user roles in the context of a location user
Getting permission values and user role
Create and Send an Invitation
Copy a User to Companies
Removing a User from Companies
Deprecated. Get location users
Updating permission value...
Updates the role and permissions of the user, as well as the team member who is attached to this user.
Security
BearerPartnerUser
Name of role
Enum:"worker""administrator""accountant""manager""owner""free_readonly""free_readonly_admin"
List of user permissions values
Example:
[ { "slug": "timetable_access", "value": true } ]
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/users/{user_id}/permissions
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/users/{user_id}/permissions
curl -i -X PUT \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/123/users/123/permissions \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"user_role": "worker",
"user_permissions": [
{
"slug": "timetable_access",
"value": true
}
],
"team_member_id": 0
}'OK
Data on the permissions and user role
Example:
{ "is_editable": true, "staff_id": 12345, "user_role": "owner", "has_any_paid_permission": null, "user_permissions": [ { … }, { … }, { … } ] }
Response
{ "success": true, "data": { "is_editable": true, "staff_id": 12345, "user_role": "owner", "has_any_paid_permission": null, "user_permissions": [ … ] }, "meta": {} }