Get executed force logout task. GET /api/openapi/v1/force-logout-tasks/{taskId}, scope admin.v1.force-logout-tasks.read.
- Scope:
admin.v1.force-logout-tasks.read - Permission: Read force-logout tasks
- Permission type: read
- Endpoint: GET
/api/openapi/v1/force-logout-tasks/{taskId}
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.
Returns executed tasks and persisted target-user snapshots. executed means the command was persisted, not client receipt or confirmed logout.
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 |
|---|---|---|---|---|---|
taskId | path | string · uuid | Yes | taskId | - |
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 |
|---|---|---|---|---|
created_at | string · date-time | Yes | Creation time. | - |
created_by | string · uuid | null | No | Creator user ID. | - |
created_by_email | string | No | Creator email. | - |
created_by_name | string | No | Creator display name. | - |
executed_at | string · date-time | null | Yes | Execution time; null before execution. | - |
execution_mode | string | Yes | Execution mode: immediate or scheduled. Values: "immediate", "scheduled" | - |
expires_at | string · date-time | null | Yes | Task expiration time. | - |
id | string · uuid | Yes | Logout task ID. | - |
prompt | string | Yes | Logout prompt displayed to the client. | - |
reason | string | Yes | Reason for creating or cancelling the task. | - |
scheduled_at | string · date-time | null | Yes | Scheduled execution time. | - |
scope_type | string | Yes | Scope: all users or specified subjects. Values: "all", "specified" | - |
status | string | Yes | Task execution status. Values: "executed", "pending" | - |
subjects | array\<object\> | Yes | Departments, users, or user groups in scope. | - |
target_client | string | Yes | Client type targeted by the logout task. Values: "pc" | - |
updated_at | string · date-time | Yes | Last update time. | - |
updated_by | string · uuid | null | No | Last updater user ID. | - |
updated_by_email | string | No | Last updater email. | - |
updated_by_name | string | No | Last updater display name. | - |
version | integer · int64 | Yes | Record version for concurrent-update validation. | - |
subjects[]
| Field | Type | Required | Description |
|---|---|---|---|
id | string · uuid | Yes | Scope subject ID. |
name | string | Yes | Scope subject name. maxLength=255 |
type | string | Yes | Subject type: department, user, or user group. Values: "department", "user", "user_group" |
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.