Multiselect attribute not working with the Rest API
search cancel

Multiselect attribute not working with the Rest API

book

Article ID: 187930

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

I have enabled the api and can see it's availability.  However I cannot update using Rest API.  I have other attributes associated to a lookup with the same query working as expected.

The Rest API call to update the attribute gives below error

"errorMessage": "CMN-0016: Attribute 'xxxyyy' has an invalid value."

"httpStatus": "500", "errorMessage": "API-1019 : Could not process the request due to internal error."

Environment

Release : 16.0.1

Component : CA PPM INTEGRATIONS & INSTALLATIONS

Resolution

Correct syntax to update multi-valued lookup attribute is below:

"fruits": [
    "Banana",
    "Guava",
    "Pineapple"
] ,
“chargeCodes”: [
    5000001,
    5000002
]