Please let us know how we can change a product with a space in product name. We can get the details as follows:
curl -X GET "http://10.186.237.96:8080/v1/organizations/geo/apiproducts/Order%20Admin%20API" -u devops@geo.com
{ "apiResources" : [ ], "approvalType" : "manual", "attributes" : [ { "name" : "access", "value" : "public" } ], "createdAt" : 1542250179536, "createdBy" : "devops@geo.com", "description" : "", "displayName" : "Order Admin API", "environments" : [ "qa", "dev" ], "lastModifiedAt" : 1542250220816, "lastModifiedBy" : "devops@geo.com", "name" : "Order Admin API", "proxies" : [ ], "quota" : "1", "quotaInterval" : "1", "quotaTimeUnit" : "minute", "scopes" : [ "" ] }
But we cant able to change product. We tried as follows but its not working please let us know.
curl -X PUT --header "Content-Type: application/json" -d @product.json "http://10.186.237.96:8080/v1/organizations/geo/apiproducts/'Order%20Admin%20API'" -u devops@geo.com
{ "code" : "keymanagement.service.apiproduct_doesnot_exist", "message" : "ApiProduct with name 'Order Admin API' does not exist", "contexts" : [ ] }
Please let us know. We need to use api calls only as there are more than 100 Products to update.