Was this helpful?

 

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

API Resource Path:

/developers/{developer_email}/apps/{app_name}
Verb: POST
Auth: Basic Auth
Media types:
application/json
text/xml

Description: Regenerates the consumer keys for the named developer app. This allows you to regenerate the keys for an app in the case where the keys' security is compromised. New ConsumerKey and ConsumerSecret values for the app are returned in the response.

Sample Request:

curl -u myname:mypass -X POST /v1/o/{org_name}/developers/{developer_email}/apps/{app_name} -d \

'<App name="{my_appname}">
    <AccessType>read</AccessType>
     <ApiProducts>
         <ApiProduct>{my_product_name}</ApiProduct>
    </ApiProducts>
</App>'

Sample Response:

<App name="MyApp">
    <AccessType>read</AccessType>
    <Credentials>
        <Credential>
            <Attributes/>
            <ConsumerKey>gN9M9KVNPmoJPZagswsZk7YbTfbr520O</ConsumerKey>
            <ConsumerSecret>AfsCPn9Wl5uwJSCf</ConsumerSecret>
            <ExpiresAt>-1</ExpiresAt>
            <IssuedAt>1394734410347</IssuedAt>
            <ApiProducts>
                <ApiProduct>
                    <Name>GoldProduct</Name>
                    <Status>approved</Status>
                </ApiProduct>
            </ApiProducts>
            <Scopes/>
            <Status>approved</Status>
        </Credential>
    </Credentials>
    <AppId>9b2f6f7c-b14f-4d22-9f53-7c36be4a58g3</AppId>
    <Attributes/>
    <CreatedAt>1394718796410</CreatedAt>
    <CreatedBy>ntesla@example.com</CreatedBy>
    <DeveloperId>TtawOglAvFB2F4Ko</DeveloperId>
    <LastModifiedAt>1394734410343</LastModifiedAt>
    <LastModifiedBy>ntesla@example.com</LastModifiedBy>
    <Scopes/>
    <Status>approved</Status>
</App>

 

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