Edit the Job Function substitutes for an individual user
The method updateUserJobRepresentatives updates the Job Function substitutes of the entered user in JobRouter.
For this a list of key-value pairs with the Job Function substitutes for the user to be added has to be created and passed to the method during the call up. This will cause all the Job Function substitutes (users are assigned as substitutes for the respective Job Functions of the user) you have not entered, but that existed before the call up, to be deleted. Newly entered Job Function substitutes (users are assigned as substitutes for the respective Job Functions of the user), which did not exist before the call up, will be added.
In case the request is successful, it returns the boolean value true.
In case the requested user does not exist, an error message will be returned. An error message is also returned if you try to define a user as its own Job Function substitute or to define a Job Function substitute for a Job Function the user does not belong to.
Method reference
Parameters |
Data type |
Description |
|---|---|---|
userName |
Username |
|
representatives |
Array with the Job Function substitutes as key value |
Return value: bool; true, if the Job Function substitutes of the users were updated successfully, otherwise false