Update keyExpiresIn through API call doesn't work

Not applicable

Hi there,

I have a developer application with Expires: Never and I want to change to a fixed date.

So, I try to do by changing the keyExpiresIn value, but it doesn't work.

What am I doing wrong?

I want to update the keyExpiresIn value for an existing developer app.

I make this API call:

PUT /v1/organizations/tomtom/developers/emilia.ipate@tomtom.com/apps/testexpirydate

Body:

{ "name" : "testexpirydate", "keyExpiresIn" : "300000" }

but I think it doesn't work, because when I make a GET/v1/organizations/tomtom/developers/emilia.ipate@tomtom.com/apps/testexpirydate I don't see in the reponse an attribute called keyExpiresIn.

What am I doing wrong?

1 1 210
1 REPLY 1

You cannot change the expire date of an already provisioned key (or credential). Not with the UI, and not with the API.

What you CAN do is add a new key (credential) to an existing app, and when you add that new key, specify the new expire date.

If you are on the Apigee Edge SaaS, you can see this video for how to set the expiry.