post /organizations/{org_name}/oauth2/accesstokens/{access_token}
Enables you to perform one of the following tasks:
- Approve or revoke an OAuth 2.0 access token. Set the
action
query parameter toapprove
orrevoke
, respectively. Optionally, set thecascade
query parameter totrue
to cause refresh tokens associated with the access token to be affected by the same action. - Update the OAuth 2.0 access token attributes. Pass the attribute details in the request body. Only attributes specified in the request body are updated. Any other existing attributes are not affected.
HTTP request
Path Parameters
org_name (required) | Organization name. |
access_token (required) | Access token. |
Query Parameters
action | Set to |
cascade | Flag that specifies whether the refresh token associated with the access token is also approved or revoked. Set to |
Request Body
Update access token attributes.
attributes | Attributes used to extend the default profile. | |||||
Name/value attribute pairs.
| ||||||
scope | List of scopes associated with the access token, validated at runtime against scopes defined in API product. |
Response Types
200:
OK
400:
Bad request
Authentication Requirements
For OAuth, enter the following in the Key field: Bearer %your-token% (see https://docs.apigee.com/api-platform/system-administration/using-oauth2#get-the-tokens)