Update application roles
Updates the ApplicationRoles with the passed data if the version hash is the same as the server. Only the groups and default groups setting of the role may be updated. Requests to change the key or the name of the role will be silently ignored. It is acceptable to pass only the roles that are updated as roles that are present in the server but not in data to update with, will not be deleted.
/api/2/applicationroleAuthorizationBasic auth · headerrequiredIn order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.
If-Matchstringapplication/jsonthe data to update the roles with.
defaultGroupsstring[]definedbooleangroupsstring[]hasUnlimitedSeatsbooleankeystringnamestringnumberOfSeatsinteger<int32>platformbooleanremainingSeatsinteger<int32>selectedByDefaultbooleanuserCountinteger<int32>userCountDescriptionstringReturns the updated ApplicationRoles if the update was successful.
defaultGroupsstring[]definedbooleangroupsstring[]hasUnlimitedSeatsbooleankeystringnamestringnumberOfSeatsinteger<int32>platformbooleanremainingSeatsinteger<int32>selectedByDefaultbooleanuserCountinteger<int32>userCountDescriptionstringReturned if the current user does not have permission to edit roles.
Returned if the current user is not an administrator.
Returned if the role does not exist.
Returned if the versionHash is not null and contains a different version to the server.