Rotate an API key
Replaces the key with a new one, same name and scope; the old key stops working at once. Answers the new key once.
POST
Replaces the key with a new one, same name and scope; the old key stops working at once. Answers the new key once.
id*stringFormat
uuidOK
application/json- response
apiKey*key*stringcurl -X POST 'https://api.postforge.dev/v1/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate'{ "apiKey": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "scope": "read", "prefix": "string", "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "rotatedAt": "2019-08-24T14:15:22Z", "status": "active", "revokedAt": "2019-08-24T14:15:22Z" }, "key": "string"}