Was this Helpful?

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path: /keyvaluemaps/{map_name}

Updates an existing KeyValueMap

Verb: PUT

Auth: Basic Auth

Media types:

application/json
text/xml

Does not override (i.e., delete & re-create) the existing Map, instead, this method updates the entries if they exist or adds them if not.

Sample Request:
$ curl -H "Content-Type:application/json" -X PUT -d \ '{ "entry" : [ { "name" : "dev", "value" : "user1" } ], "name" : "prodmap" }' \ -u myname:mypass https://api.enterprise.apigee.com/v1/o/{org_name}/keyvaluemaps $ curl -H "Content-Type:application/json" -X PUT -d \ '{ "entry" : [ { "name" : "dev", "value" : "user1" } ], "name" : "prodmap" }' \ -u myname:mypass https://api.enterprise.apigee.com/v1/o/{org_name}/environments/{env_name}/keyvaluemaps $ curl -H "Content-Type:application/json" -X PUT -d \ '{ "entry" : [ { "name" : "dev", "value" : "user1" } ], "name" : "prodmap" }' \ -u myname:mypass https://api.enterprise.apigee.com/v1/o/{org_name}/apis/{api_name}/keyvaluemaps
Request Payload Elements:
Name Description Default Required?
entry The list of entries in the map N/A Yes
name The name of the entry N/A Yes
value The value of the netry N/A Yes
name The name of the map to be updated N/A Yes
Sample Response:
{
  "entry" : [ {
    "name" : "qa",
    "value" : "user2"
  }, {
    "name" : "dev",
    "value" : "user1"
  } ],
  "name" : "prodmap"
}
Response Payload Elements:
Name Description
entry The name of the list of entries in the map
name The name of the entry
value The value of the entry
name The name of the map
Errors
Failure 4xx with proper error message
{
  "code" : "keymanagement.service.organization_map_doesnt_exist",
  "message" : "Organization map does not exist",
  "contexts" : [ ]
}

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)