DELETE /admin/oauth/devices/{device_code}

Revokes a specified device authorization session, marking it as expired. Admin only.

OAuth `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
device_code path string Yes Device code

Responses

StatusDescriptionSchema
200Revocation successfulgitee_com_autional_base_dto.SimpleResponse
400Invalid request parametersgitee_com_autional_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_autional_base_dto.SimpleResponse
403Insufficient permissions: administrator role requiredgitee_com_autional_base_dto.SimpleResponse
404Device authorization not foundgitee_com_autional_base_dto.SimpleResponse
500Internal server errorgitee_com_autional_base_dto.SimpleResponse

Referenced Schemas

gitee_com_autional_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No