Was this helpful?

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

API Resource Path: /oauth1/requesttokens/{request_token}

Updates a Request Token with new profile

Verb: PUT

Auth: Basic Auth

Sample Request:
$ curl -H "Content-type:application/json" -X PUT -d \ '{ "attributes" : [ { "name" : "region", "value" : "north" } ], "callbackUrl" : "www.dev.com", "scope" : "global" }' \ -u myname:mypass https://api.enterprise.apigee.com/v1/o/{org_name}/oauth1/requesttokens/{request_token}
Sample Response:
{
  "app" : "myApp",
  "attributes" : [ {
    "name" : "region",
    "value" : "north"
  } ],
  "callbackUrl" : "www.dev.com",
  "consumerKey" : "Lmupmwb5mD6CAEl6vqii1kojTGMiCnWj",
  "createdAt" : 1343034561737,
  "createdBy" : "Admin",
  "expiresAt" : 1343036361737,
  "issuedAt" : 1343034561737,
  "lastModifiedAt" : 1343034561817,
  "lastModifiedBy" : "Admin",
  "scope" : "global",
  "secret" : "kSdnf7pBZADjxg5qfMkHhDVTumR5",
  "status" : "approved",
  "token" : "1wXHJFNXLA0Haeg4lVMToZWJHaFM"
}

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?)