How to add and update entry in Org KeyValue Map using Management Server REST API

Hi

I have created an organization level KVM.

Now I want to add and update an entry to existing KVM.

I tried to follow below link

http://docs.apigee.com/management/apis/put/organizations/%7Borg_name%7D/keyvaluemaps/%7Bmap_name%7D

But it says

DEPRECATED: This API is being deprecated and will be removed in a future release. Update map entries individually instead of in bulk.

Where are the API's which can Add and Update map entries individually ?

CPS API's below doesn't work for me as CPS is not enabled.

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/keyvaluemaps/%7Bmap_name%7D...

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/keyvaluemaps/%7Bmap_name%7D...

1 3 297
3 REPLIES 3

Not applicable

@GAURAV,

CPS enablement seem to be the only option. I am able to make successful calls (via CPS based APIs) on my free org.

Regards,

Rajesh

@rdoda

How can I enable CPS on the organization ?

You cannot. Enabling CPS is not something you can do. It is done only by Apigee devops.

To inquire, you can do this:

$ curl -i -u username:passwd https://api.enterprise.apigee.com/v1/o/ORGNAME

And you should see a payload in response. For CPS-enabled organizations, it looks like this:

{
  "createdAt" : 1392304224101,
  "createdBy" : "noreply_admin@apigee.com",
  "displayName" : "myorgname",
  "environments" : [ "test", "prod" ],
  "lastModifiedAt" : 1454703544474,
  "lastModifiedBy" : "noreply_cpsadmin@apigee.com",
  "name" : "myorgname",
  "properties" : {
    "property" : [ {
      "name" : "features.isCpsEnabled",
      "value" : "true"
    } ]
  },
  "type" : "trial"
}