Send Docs Feedback

Delete Authorization Code

API Platform Base Path:{org_name}

API Resource Path: /oauth2/authorizationcodes/{authorization_code}

Deletes the given authorization Code.


Auth: Basic Auth

Sample Request:
$ curl -X DELETE{org_name}/oauth2/authorizationcodes/{authcode} \ -u myname:mypass
Sample Response:
  "attributes" : [ {
    "name" : "region",
    "value" : "south"
  } ],
  "client_id" : "kjvzAT2kR03jcZGQDod6VtMt8Lj0Ce6c",
  "code" : "m9PEEI6I",
  "createdAt" : 1343043442176,
  "createdBy" : "Admin",
  "expiresAt" : 1343045242176,
  "issuedAt" : 1343043442176,
  "lastModifiedAt" : 1343043442176,
  "lastModifiedBy" : "Admin",
  "scope" : "",
  "status" : "active"

Response Payload Elements:
Name Description
attributes Name/value pairs used to extend the default auth code profile
client_id The consumer key of the app
code The value of the authorization code
createdAt Unix time when the auth code was generated
createdBy User name of the Apigee user who created the auth code
expiresAt Unix time when the auth code expires
issuedAt Unix time when the auth code was issued
lastModifiedAt Unix time when the auth code was last modified
lastModifiedAt User name of the Apigee user who last modified the auth code
status Status of the auth code, which changes to expired when the validity period has passed
  "code" : "keymanagement.service.invalid_request-authorization_code_invalid",
  "message" : "Invalid Authorization Code",
  "contexts" : [ ]

Error Codes:
1. keymanagement.service.authorization_code_invalid
2. keymanagement.service.authorization_code_delete_failed

Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click Send Docs Feedback on this page.
    (Incorrect? Unclear? Broken link? Typo?)