curl --request POST \
--url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/keys/rotate \
--header 'Authorization: Bearer <token>'{
"apiKey": "<string>",
"rotatedAt": "2023-11-07T05:31:56Z"
}Generates a new API key and invalidates the current one.
curl --request POST \
--url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/keys/rotate \
--header 'Authorization: Bearer <token>'{
"apiKey": "<string>",
"rotatedAt": "2023-11-07T05:31:56Z"
}