POST /auth/api-keys/{id}/rotate
Create a new Key and mark the old Key as inactive (24h grace period), return the new Key only once
API Key `bearerAuth` application/json
Responses
| Status | Description | Schema |
| 200 | Newly created API Key | |
Referenced Schemas
dto.CreateApiKeyResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
|
|
|
environment |
string |
No |
|
|
|
expires_at |
string |
No |
|
|
|
id |
string |
No |
|
|
|
name |
string |
No |
|
|
|
raw_key |
string |
No |
|
|
|
scopes |
array of
string |
No |
|
|
|
status |
string |
No |
|
|
|
gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
object |
No |
|
|
|
message |
string |
No |
|
|
|