Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to add multiple values to a single key in KVM using KVM Api

Not applicable

Hello All,

I need to have a single key with multiple values using KVM API.

I'm using below but getting error, Please check

https://xxx.x.x.com/v1/organizations/org/e/env/keyvaluemaps/


{
  "entry" : [ {
    "name" : "KEY",
    "value" : ["value1", "value2"]
  } ],
  "name" : "kvmlist"
}


Error: {
  "message" : "Can not deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@3bd66b48; line: 3, column: 27] (through reference chain: com.apigee.keyvaluemap.resource.KeyValueMap[\"entry\"]->com.apigee.keyvaluemap.resource.KeyValueMapEntry[\"value\"])",
  "contexts" : [ ]
}
0 11 2,810
11 REPLIES 11