Autional Autional
API Reference GitHub autional.com →

PUT /auth/api-keys/{id}/status

Toggle API Key status (active ↔ inactive)

API Key `bearerAuth` application/json

Request Body

Schema: dto.UpdateApiKeyStatusRequest

FieldTypeRequiredExampleConstraintsDescription
status string Yes enum: `active`, `inactive`

Responses

StatusDescriptionSchema
200Update successful

Referenced Schemas

dto.ApiKeyResponse

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2024-01-01T00:00:00Z
environment string No live
expires_at string No 2025-01-15T00:00:00Z
id string No 01ARZ3NDEKTSV4RRFFQ69G5FAV
ip_restrictions array of

See dto.ipRestrictionDTO

No
last_used_at string No 2024-01-15T10:30:00Z
last_used_ip string No 192.168.1.100
name string No my-api-key
scopes array of

string

No ['["read"', '"write"]']
status string No active
tenant_id string No 01ARZ3NDEKTSV4RRFFQ69G5FAV
updated_at string No 2024-06-15T12:00:00Z
usage_count integer No 42
user_id string No 01ARZ3NDEKTSV4RRFFQ69G5FAV

dto.ipRestrictionDTO

FieldTypeRequiredExampleConstraintsDescription
id string No
label string No
status string No
value string No

gitee_com_linmes_authms_micro-services_identity-service_internal_handler_dto.DataResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data object No
message string No