If apigee app key was expire, is it possible to set same key in new credential of same app

I have app, now the key is expired, I wanted to extend expire the date of key, not fount any option to extend.

@apigee 
@dchiesa1 

 

Solved Solved
0 2 123
1 ACCEPTED SOLUTION

I used the bellow gcloud Apigee API to create new credentials with the same expired key and secret, and it worked.

curl --location 'https://apigee.googleapis.com/v1/organizations/{{orgName}}/developers/{{email}}/apps/{{appName}}/keys/create' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"consumerKey": "",
"consumerSecret": ""
}'

 

View solution in original post

2 REPLIES 2

It is not possible to extend the lifetime of an expired key.

It is not possible to create a new key with the same value as an expired key. 

It may be possible to delete a key (credential) and re-create it, with a new lifetime.  I haven't tried that.  But you can try it very easily. 

Please let us know what you find.

I used the bellow gcloud Apigee API to create new credentials with the same expired key and secret, and it worked.

curl --location 'https://apigee.googleapis.com/v1/organizations/{{orgName}}/developers/{{email}}/apps/{{appName}}/keys/create' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"consumerKey": "",
"consumerSecret": ""
}'