Approve or revoke company apps by management API

varuna
New Member

Is there a way to Approve or Revoke Company Apps, like we do developer apps.

0 5 379
5 REPLIES 5

Hi @Kuldeep Bhati

I mean to change the status of Company App, like we can do of Developer App.

https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper...

Do we have to pass status as a attribute?

Hi @Vipul Agarwal,

Turns out, there's no such call about "Approve or Revoke Company App" mentioned on documentation at least - https://apidocs.apigee.com/api/apps-company, however there's a call, I figured it out by trial and error (so just a caution - you should double check before using it). I checked out this call and replicated for company, and it worked!

Here's the `curl` command you can use;

To revoke: 

curl -X POST --header "Content-Type: application/octet-stream" --header "Authorization: Basic <add your Basic Auth>" "https://api.enterprise.apigee.com/v1/organizations/{org}/companies/{company-name}/apps/{appname}?action=revoke"

To approve: 

curl -X POST --header "Content-Type: application/octet-stream" --header "Authorization: Basic <add your Basic Auth>" "https://api.enterprise.apigee.com/v1/organizations/{org}/companies/{company-name}/apps/{appname}?action=approve"<br>

You can also read this - https://community.apigee.com/questions/61451/update-company-app-creating-additional-credentials.html for more insights if you'd like.

I hope this helps.