Update Employee Roles
post
/config/sim/v1/employees/updateRoles
Updates the role assigned to the Employee at the specified hierarchy unit. If Employee role is not found, it assigns a new Employee role
Request
Supported Media Types
- application/json
- multipart/form-data
Header Parameters
-
Simphony-AuditTrailRef: string
Detail that identifies, who made the change.
-
Simphony-OrgShortName: string
The ShortName of the organization
Employee Role Object
Root Schema : EmployeeRole
Type:
object
Model for an Employee Role Object
Show Source
-
hierObjNum(optional):
integer
Object number of the hierarchy unit where the employee role is configuredExample:
26
-
hierUnitId:
integer
Unique reference of the hierarchy unit where the employee role is configuredExample:
3599
-
hierUnitName(optional):
object HierUnitNameTranslatedString
A string that contains translations of hierarchy unit name into multiple languages
-
objectNum:
integer
Unique reference of the employee in the system.Example:
1
-
roleEmployeeId:
integer
Unique reference of EmployeeExample:
1
-
roleName(optional):
object RoleNameTranslatedString
A string that contains translations of employee role name into multiple languages
-
roleObjNum:
integer
The object number of the employee roleExample:
1000
Nested Schema : HierUnitNameTranslatedString
Type:
object
A string that contains translations of hierarchy unit name into multiple languages
Example:
{
"en-US":"Property",
"de-DE":"Eigentum",
"ar-AR":"??????????"
}
Nested Schema : RoleNameTranslatedString
Type:
object
A string that contains translations of employee role name into multiple languages
Example:
{
"en-US":"Cashier",
"de-DE":"Kassierer",
"ar-AR":"???????? ??????????????"
}
Response
Supported Media Types
- application/json
200 Response
Employee Role object of the organization.
Root Schema : EmployeeRoleResponse
Type:
object
Model of response object
Show Source
-
hierUnitId:
integer
Unique hierarchy unit valueExample:
1
-
objectNum:
integer
Unique reference of EmployeeExample:
1
-
roleObjNum:
integer
Unique reference of employee RoleExample:
1
400 Response
400 Bad Request
Root Schema : ErrorDetails
Type:
object
Response body when the request returns an error.
Show Source
-
detail(optional):
string
A short, human-readable summary of the problem.Example:
Specified Data is invalid
-
errorDetails(optional):
string
A human-readable explanation specific to this occurrence of the problem.Example:
Entity Does Not Exist
-
o:errorCode(optional):
integer
Error code of the problemExample:
55223
-
status(optional):
integer
HTTP status code.Example:
400
-
title(optional):
string
A short, human-readable summary of the problem type.Example:
VALIDATION ERROR
-
type(optional):
string
A URI reference that identifies the problem type. When this member is not present, its value is assumed to be "about:blank".Example:
http://www.abc.org/xyz.html