To rotate your API client's credentials or another client's credentials, modify a pair of individual credential members.
Rotate credentials for your API client:
-
Run Update your credential to update the expiration date of an old credential to a new date you choose to let it auto-expire.
-
Run Create your credential so the new credential can replace the old one.
-
Deploy your new keys and secrets.
Rotate credentials for a given API client:
-
Run Update a credential to update the expiration date of an old credential to a new date you choose to let it auto-expire.
-
Run Create a credential so the new credential can replace the old one.
-
Deploy your new keys and secrets.
You should leave enough overlap between the old and new credentials to ensure you maintain access during the rotation. If your old credentials expire before you finish updating the new ones, you'll lose access to the APIs assigned to the expired credentials.