Skip to main content

Get executed force logout task

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}
Use 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

NameLocationTypeRequiredDescriptionExample
taskIdpathstring · uuidYestaskId-

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “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
NameTypeRequiredDescriptionExample
created_atstring · date-timeYesCreation time.-
created_bystring · uuid | nullNoCreator user ID.-
created_by_emailstringNoCreator email.-
created_by_namestringNoCreator display name.-
executed_atstring · date-time | nullYesExecution time; null before execution.-
execution_modestringYesExecution mode: immediate or scheduled. Values: "immediate", "scheduled"-
expires_atstring · date-time | nullYesTask expiration time.-
idstring · uuidYesLogout task ID.-
promptstringYesLogout prompt displayed to the client.-
reasonstringYesReason for creating or cancelling the task.-
scheduled_atstring · date-time | nullYesScheduled execution time.-
scope_typestringYesScope: all users or specified subjects. Values: "all", "specified"-
statusstringYesTask execution status. Values: "executed", "pending"-
subjectsarray\<object\>YesDepartments, users, or user groups in scope.-
target_clientstringYesClient type targeted by the logout task. Values: "pc"-
updated_atstring · date-timeYesLast update time.-
updated_bystring · uuid | nullNoLast updater user ID.-
updated_by_emailstringNoLast updater email.-
updated_by_namestringNoLast updater display name.-
versioninteger · int64YesRecord version for concurrent-update validation.-

subjects[]

FieldTypeRequiredDescription
idstring · uuidYesScope subject ID.
namestringYesScope subject name. maxLength=255
typestringYesSubject 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.

Semantics and safety

Only executed tasks are supported. Pending scheduled tasks return 404 here; use the existing task list to query pending tasks. This endpoint neither triggers execution nor provides client logout acknowledgements.