cURL
curl --request POST \ --url https://global.thenile.dev/workspaces/{workspaceSlug}/databases/{databaseName}/credentials/rotate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: */*' \ --data ' { "delayOldSecretsExpirationHours": 360, "reason": "<string>" } '
Generates a new credential and schedules existing credentials for deletion after the provided delay.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
0 < x < 720
default response
Was this page helpful?