Was this helpful?

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

API Resource Path: /oauth2/accesstokens/{access_token}?action=approve

Verb: GET

Auth: Basic Auth

Sample Request:
$ curl -H "Content-type:application/x-www-form-urlencoded" -X POST \ https://api.enterprise.apigee.com/v1/o/{org_name}/oauth2/accesstokens/{access_token}?"action=approve&cascade=true" \ -u myname:mypass
Query Parameters:
Name Description Default Required?
action Supported values for 'action' are 'approve' and 'revoke' N/A Yes
cascade Setting 'cascade' to 'true' causes refresh tokens associated with the access token to be affected by the same action. Setting 'cascade' to 'false' leaves associated refresh tokens unaffected by this action. true No
Sample Response:
Success 204

Errors
Failure 404 with proper error message
<Error>
<Code>keymanagement.service.invalid_accesstoken</Code>
<Message>Invalid Access Token</Message>
<Contexts/>
</Error>

Error Codes:
1. keymanagement.service.application_not_approved
2. keymanagement.service.invalid_access_token
3. keymanagement.service.access_token_approve_failed

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)