I have app, now the key is expired, I wanted to extend expire the date of key, not fount any option to extend.
Solved! Go to 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": ""
}'
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": ""
}'