We're using Apigee evaluation version and could able to create a new empty KVM but not able to assign any values to it. There is no edit option available. How to add values to KVM?
You can do it via the API.
## KVM - POST new entry for one environment-scoped keyvaluemap
:kvm = testmap
POST :apigee/v1/organizations/:org/environments/:env/keyvaluemaps/:kvm/entries
Authorization: Bearer :token
Content-Type: application/json
{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}
Unfortunately, at the moment the UI does not allow setting values into the KVM.
How do we post multiple entries? Can we do array of Json Objects and post entries for a KVM
Entries : [
{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting2", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting3", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}
]
@dchiesa1 @anilsagar
How do we post multiple entries? Can we do array of Json Objects and post entries for a KVM
Entries : [
{"name":"setting1", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting2", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"},
{"name":"setting3", "value":"a-value-56D12D30-52C9-48B2-A992-5F6171ADBAAE"}
]