Was this helpful?

 

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

API Resource Path:

/apiproducts/{apiproduct_name}

Description: This method updates an existing APi Product

Verb: PUT
Auth: Basic Auth
Media types:
application/json
text/xml

For more information on API products, see Creating API products.

Overview: Call PUT on an existing API product to update the API product. You must include the entire profile of the existing API product, including the properties to be updated, in the update request payload.

Sample Request:
$ curl -H "Content-Type:application/json" -X PUT -d \
 '{
  "approvalType" : "auto",
  "attributes" : [ {
    "name" : "division",
    "value" : "accounting"
  } ],
  "displayName" : "Sandbox Silver",
  "name" : "sandbox",
  "apiResources" : [ "/forecasts", "/categories/*/articles" ],
  "description" : "Provides rate limited read and write access to sandbox account APIs",
  "scopes": [ "read, write" ],
  "environments": [ "test" ],
  "proxies": [ "weatherapi" ],
  "quota": "10000",
  "quotaInterval": "1",
  "quotaTimeUnit": "month"
}'  \
https://api.enterprise.apigee.com/v1/o/apifactory/apiproducts/sandbox \
-u myname:mypass
Sample Response:
{
  "apiResources" : [ "/forecasts", "/categories/*/articles" ],
  "approvalType" : "auto",
  "attributes" : [ {
    "name" : "division",
    "value" : "accounting"
  } ],
  "createdAt" : 1374679889295,
  "createdBy" : "andrew@apigee.com",
  "description" : "Provides rate limited read and write access to sandbox account APIs",
  "displayName" : "Sandbox Silver",
  "environments" : [ "test" ],
  "lastModifiedAt" : 1374680530762,
  "lastModifiedBy" : "andrew@apigee.com",
  "name" : "sandbox",
  "proxies" : [ "weatherapi" ],
  "quota" : "10000",
  "quotaInterval" : "1",
  "quotaTimeUnit" : "month",
  "scopes" : [ "read, write" ]
}
Errors
{
  "code" : "keymanagement.service.apiproduct_doesnot_exist",
  "message" : "ApiProduct with name sandbox1 does not exist",
  "contexts" : [ ]
}

 

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.