All Products
Search
Document Center

Quick BI:QueryWorks

Last Updated:Oct 23, 2026

Queries the details of a specified data work.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

quickbi-public:QueryWorks

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

WorksId

string

Yes

The work ID.

abcd****

Response elements

Element

Type

Description

Example

object

The response body.

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

RequestId

string

The request ID.

D787E1A3-A93C-424A-B626-C2B05DF8D885

Result

object

The details of the data work.

Auth3rdFlag

integer

The third-party embedding status. Valid values:

  • 0: Embedding is not enabled.

  • 1: Embedding is enabled.

0

Description

string

The description of the data work.

Remark

Directory

object

The folder to which the data work belongs.

Id

string

The ID of the folder.

83d37ba6-d909-48a2-a517-f4d05c3a****

Name

string

The name of the folder.

Test folder

PathId

string

The hierarchical structure of the folder IDs, separated by forward slashes (/).

83d37ba6-d909-48a2-a517-f4d05c3a****

PathName

string

The hierarchical structure of the folder names, separated by forward slashes (/).

Test folder

GmtCreate

string

The millisecond-level timestamp when the data work was created.

1496651577000

GmtModify

string

The millisecond-level timestamp when the data work was updated.

1496651577000

ModifyName

string

The Alibaba Cloud account name of the user who updated the data work.

Zhang San

OwnerId

string

The Quick BI user ID of the data work owner.

9187a612aa474e2a8ac1414d5529****

OwnerName

string

The Alibaba Cloud account name of the data work owner.

Zhang San

PublicFlag

boolean

Indicates whether the data work is public.

true

PublicInvalidTime

integer

The expiration date for public access to the report, represented as a UNIX timestamp in milliseconds.

1721366354000

SecurityLevel

string

The security policy for collaborative authorization of the data work. Valid values:

  • 0: Private.

  • 12: Authorized to specified members.

  • 1 or 11: Authorized to all workspace members.

Note
  • If you use the legacy permissions, the value 1 is returned.

  • If you use the new permissions, the value 11 is returned.

0

Status

integer

The status of the report. Valid values:

  • 0: Unpublished.

  • 1: Published.

  • 2: Modified but unpublished.

  • 3: Offline.

0

WorkName

string

The name of the data work.

Test report

WorkType

string

The type of the data work to query. Leave this parameter empty to query all types. Valid values:

  • DATAPRODUCT: Data portal.

  • PAGE: Dashboard.

  • FULLPAGE: Full-screen dashboard.

  • REPORT: Workbook.

  • dashboardOfflineQuery: Self-service data retrieval.

PAGE

WorksId

string

The ID of the data work.

95296e95-ca89-4c7d-8af9-dedf0ad0****

WorkspaceId

string

The ID of the workspace to which the data work belongs.

87c6b145-090c-43e1-9426-8f93be23****

WorkspaceName

string

The name of the workspace to which the data work belongs.

Test workspace

GlobalParamVoList

array<object>

The global parameter array.

object

The global parameter object.

DataType

string

The field type. Valid values:

  • enum: Enumeration.

  • string: Text.

  • number: Numeric value.

  • datetime: Date and time.

string

ParamName

string

The name of the parameter.

lastQueryAt

ParamAlias

string

The alias of the parameter.

lastQueryAt

Required

boolean

Indicates whether the parameter is required.

false

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
  "Result": {
    "Auth3rdFlag": 0,
    "Description": "Remarks",
    "Directory": {
      "Id": "83d37ba6-d909-48a2-a517-f4d05c3a****",
      "Name": "TestDirectory",
      "PathId": "83d37ba6-d909-48a2-a517-f4d05c3a****",
      "PathName": "TestDirectory"
    },
    "GmtCreate": "1496651577000",
    "GmtModify": "1496651577000",
    "ModifyName": "John",
    "OwnerId": "9187a612aa474e2a8ac1414d5529****",
    "OwnerName": "John",
    "PublicFlag": true,
    "PublicInvalidTime": 1721366354000,
    "SecurityLevel": "0",
    "Status": 0,
    "WorkName": "TestReport",
    "WorkType": "PAGE",
    "WorksId": "95296e95-ca89-4c7d-8af9-dedf0ad0****",
    "WorkspaceId": "87c6b145-090c-43e1-9426-8f93be23****",
    "WorkspaceName": "TestWorkspace",
    "GlobalParamVoList": [
      {
        "DataType": "string",
        "ParamName": "lastQueryAt",
        "ParamAlias": "lastQueryAt",
        "Required": false
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Invalid.Works.Empty This work does not exist. It may have been deleted. Work ID is %s. The work does not exist. It may have been deleted. Work ID: %s.
400 Resource.NotBelongTo.CurrentOrganization The resource does not belong to the current organization. This Resource is not belong to current organization.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.