Hi All,
Wondering if anyone has been able to set up an API that creates an assyst User. We’re looking to get the correct JSON code syntax to create an assystUser, however we keep hitting the following error:
“Invoke-RestMethod : roleJob Title is required.server.validation.errors.mandatoryUserRolecom.axiossystems.assyst.dto.userConfiguration.AssystUserDtomandatoryUserRoleshortCodeShortcode is
required.server.validation.errors.mandatoryShortCodecom.axiossystems.assyst.dto.userConfiguration.AssystUserDtomandatoryShortCodeservDeptService Department is
required.server.validation.errors.mandatoryServDeptcom.axiossystems.assyst.dto.userConfiguration.AssystUserDtomandatoryServDeptnameName is
required.server.validation.errors.mandatoryNamecom.axiossystems.assyst.dto.userConfiguration.AssystUserDtomandatoryNameA complex validation error has been detected by the
application.rest.exceptions.ComplexValidationExceptionComplexValidationException”
Our current JSON code is set out as such:
{
"assystUser":{
"resolvingParameters" : {
"parameterName" : "shortCode",
"parameterValue" : "kevin.test@test.com"
}],
"resolvingParameters" : {
"parameterName" : "Name",
"parameterValue" : "Kevin Test"
}]
"userRole":{
"resolvingParameters" : >{
"parameterName" : shortCode,
"parameterValue" : "NOT USED"
}],
"resolvingParameters" : {
"parameterName" : "shortCode",
"parameterValue" : "NOT USED"
}]
},
"servDept":{
"resolvingParameters" : /{
"parameterName" : "ID",
"parameterValue" : 187
}],
"resolvingParameters" : e{
"parameterName" : "Name",
"parameterValue" : "ACL"
}]
Any suggestions gratefully received!