Was this helpful?

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

API Resource Path: /oauth1/accesstokens/{access_token}

Updates the attributes of given accesstoken

Verb: POST

Auth: Basic Auth

Any portion of the access token profile may be updated using POST. In this example, we update the access token with custom attributes and a new scope. The entire updated access token profile is returned in the response.

Sample Request:
{ "attributes" : [ { "name" : "region", "value" : "south" }, { "name" : "country", "value" : "norway" } ], "scope" : "global" }
Request Payload Elements:
Name Description Default Required?
attributes Name/value elements used to extend the default profile No
scope A list of scopes associated with access token, validated at runtime against scopes defined in API product Yes
Sample Response:
{
  "apiProducts" : [ "PremiumApiProduct" ],
  "app" : "myApp",
  "appUserId" : "Developer@apigee.com",
  "attributes" : [ {
    "name" : "region",
    "value" : "south"
  }, {
    "name" : "country",
    "value" : "norway"
  } ],
  "consumerKey" : "mlfBg7NH9tCua8wUhuamKHeTdfHxMB0A",
  "consumerSecret" : "iF1lDg239ngfhLWH",
  "createdAt" : 1343037194128,
  "createdBy" : "1343037194128",
  "expiresAt" : 1343038994128,
  "issuedAt" : 1343037194128,
  "lastModifiedAt" : 1343037194207,
  "lastModifiedBy" : "Admin",
  "scope" : "global",
  "secret" : "HJ3Gl6KTF01pAH24GAAdGfb8dOq1",
  "status" : "approved",
  "token" : "kNw6eQrL5G7etEBcvqvRTL01E5rY"
}
Errors
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_notapproved
5. keymanagement.service.oauth10_access_token_update_failed

Add new comment

Provide your email address if you wish to be contacted offline about your comment.
We will not display your email address as part of your comment.

We'd love your feedback and perspective! Please be as specific as possible.
Type the characters you see in this picture. (verify using audio)

Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.