entry_name

https://api.enterprise.apigee.com/v1/organizations/reachgeeks/environments/prod/keyvaluemaps/kvm1/en...

Hi ... Wanted to know what is the input {entry_name} in the URL for update KVM as provided in the link

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/environments/%7Benv_name%7D...

Error:

HTTP/1.1 400 Bad Request

Connection:
keep-alive
Content-Length:
120
Content-Type:
application/json
Date:
Wed, 21 Jun 2017 14:38:09 GMT
Server:
Apigee LB
{
  "code": "rest.RequiredAttribute",
  "message": "Required attribute name is missing in Entry",
  "contexts": []
}

thanks

Rajeev

0 1 144
1 REPLY 1

Hi @Rajeev Chandran: Entry Name : the existing Key Name which is available in your Organisation's KeyValue Map. Above mentioned management API is to update the existing KeyValue pair.

Ex: I assume you have kvm1 as your Map Name under prod environment. And you have a key called userKey with value as xyz.

If you want to update the userKey value as Rajeev instead of xyz then you can run the below API.

https://api.enterprise.apigee.com/v1/organizations/reachgeeks/environments/prod/keyvaluemaps/kvm1/en...userKey

Json request = { "name" : "userKey", "value" : "Rajeev" }

It should work good .

Just to makesure your organisations is CPS feature enabled by running following API.

curl -v 'https://api.enterprise.apigee.com/v1/organizations/{org_name}'-u you@email

the response for CPS-enabled organizations will contain the following:

{"name":"features.isCpsEnabled","value":"true"}

Hope it helps.