Inspect trust request. POST /api/openapi/v1/trusted-device-requests/{id}/inspections, scope admin.v1.trusted-device-requests.review.
- Scope:
admin.v1.trusted-device-requests.review - Permission: trusted device requests review
- Permission type: manage
- Endpoint: POST
/api/openapi/v1/trusted-device-requests/{id}/inspections
Authorization: Bearer \<API_KEY\>. This endpoint requires an application with subject_scope={"mode":"all"}. Restricted or invalid user scopes return 403 openapi_subject_scope_denied before business execution.
Scopes do not imply each other. Organization and application actor come from verified authentication, not request parameters.
This POST refreshes the request and effective policy and may delete obsolete unlocked pending requests. It is not a read-only detail endpoint.
Common request headers
Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope.
Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.
Request parameters
| Name | Location | Type | Required | Description | Example |
|---|---|---|---|---|---|
id | path | string · uuid | Yes | id | - |
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Request succeeded | See “Response” on this page | Read the response. |
default | Other authentication, authorization, validation or dependency errors | See “General error” in “Configure the QwenWork console through APIs” | Handle the status and code; verify the result and idempotency requirements before retrying writes. |
Response
Content-Type: application/json
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
request | object | No | Associated trust request; omitted when no request is available. | - |
result | string | Yes | Processing result for the request; see enum values. Values: "already_processed", "already_trusted", "already_untrusted", "approved", "pending", "rejected" | - |
request
| Field | Type | Required | Description |
|---|---|---|---|
created_at | string · date-time | Yes | Creation time. |
device | object | Yes | Device information reported in the request. |
id | string | Yes | Trust request ID. |
locked | boolean | Yes | Whether the current policy locks the request against manual review. |
reason | string | Yes | Request or processing reason. |
review_comment | string | Yes | Review comment. |
reviewed_at | string · date-time | null | Yes | Review time; null before review. |
reviewed_by | string | null | Yes | Reviewer user ID; null before review. |
reviewed_by_email | string | Yes | Reviewer email. |
reviewed_by_name | string | Yes | Reviewer display name. |
status | string | Yes | Request review status. Values: "approved", "pending", "rejected" |
trusted_device_count | integer · int64 | Yes | Current number of trusted devices for this user. |
user | object | Yes | User associated with the device or request. |
version | integer · int64 | Yes | Record version for concurrent-update validation. |
request.device
| Field | Type | Required | Description |
|---|---|---|---|
client_device_id | string | Yes | Device identifier reported by the client. maxLength=255 |
device_name | string | Yes | Device name. maxLength=255 |
login_username | string | No | Device owner's login account. maxLength=255 |
mac_address | string | null | No | Device MAC address. maxLength=32 |
model | string | No | Device model. maxLength=255 |
operating_system | string | No | Device operating system. maxLength=128 |
serial_number | string | null | No | Device serial number. maxLength=255 |
request.user
| Field | Type | Required | Description |
|---|---|---|---|
department_id | string | null | Yes | Department ID. |
department_name | string | Yes | Department name. |
department_path | string | Yes | Department hierarchy path. |
departments | array\<object\> | Yes | Departments the user belongs to. |
email | string | Yes | User email. |
employee_no | string | Yes | Employee number. |
org_id | string · uuid | Yes | Organization ID. |
user_id | string · uuid | Yes | User ID. |
user_name | string | Yes | User display name. |
request.user.departments[]
| Field | Type | Required | Description |
|---|---|---|---|
id | string · uuid | Yes | Department ID. |
name | string | Yes | Department name. |
path | string | Yes | Department hierarchy path. |
Errors
Uses the existing {error, detail, code} error envelope. Invalid credentials: 401/403; missing Scope or non-all user scope: 403; missing resource: 404; conflict/stale version: 409; invalid input: 400/422; unavailable dependency: 503. Business errors retain Console semantics.