Send Docs Feedback

Approve Oauth 1.0 Access Token

API Platform Base Path:{org_name}

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

Approves the specified Access Token

Verb: POST

Auth: Basic Auth

Sample Request:
$ curl -H "Content-type:application/x-www-form-urlencoded"; -X POST \{org_name}/oauth1/accesstokens/{access_token}?"action=approve" \ -u myname:mypass
Sample Response:
Success 204 with no response
Failure 404 with proper error message
  "code" : "keymanagement.service.....",
  "message" : "Access Token doesnot exist",
  "contexts" : [ ]

Error Codes:
1. keymanagement.service.oauth10_access_token_doesnotexist
3. keymanagement.service.application_not_approved
4. keymanagement.service.oauth10_access_token_approval_failed

Help or comments?