to get a personalized navigation.
to get a personalized navigation.
Hi
When you try to update multiple segment values in a dimension you can error from the API.
please find example json below.
It works fine if you just add one item in the segmentvalues array, but not if you add more than one.
I have tried both in the integration and in swagger, same response from the API.
"message": "VismaId: 91d5b15a-9976-4807-9302-ff15068da787. Object reference not set to an instance of an object."
{
"segmentValues": [
{
"operation": "Insert",
"value": "310",
"description": {
"value": "Cagil Kayan Widegren"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "310",
"description": {
"value": "Cagil Kayan Widegren"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "290",
"description": {
"value": "Sandra Björklin"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "290",
"description": {
"value": "Sandra Björklin"
},
"active": {
"value": true
}
}
],
"dimensionId": "subaccount",
"segementId": 2,
"description": {
"value": "Resultatenhet"
}
}
Solved! Go to Solution.
I see now that i have unfortunately have added same object twice in the array of values, most likely that's what causes the error, but you would really wish for some better error message in the response
Copyright © 2022 Visma.com. All rights reserved.