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.
We also tried as follows but still same error:
"http://10.186.237.96:8080/v1/organizations/sephora/apiproducts/Order%20Admin%20API"
"http://10.186.237.96:8080/v1/organizations/sephora/apiproducts/'Order Admin API'"
Please let me know any one have any idea on this.
Are you using the correct org in the URL. In the initial CURL you have org name as "geo" and in the comment above you have it as "sephora"
Yes we already tried that but getting same error.
We also tried as follows but still same error:
"http://10.186.237.96:8080/v1/organizations/sephora/apiproducts/Order%20Admin%20API"
"http://10.186.237.96:8080/v1/organizations/sephora/apiproducts/'Order Admin API'"
Yes I am using correct organization. Actually it was a typo...