This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Add a sharing configuration for data works.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
*All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorksId | string | Yes | The ID of the shared work. The works here include BI portal, dashboards, spreadsheets, and self-service access. | 6b407e50-e774-406b-9956-da2425c2**** |
| ShareToId | string | Yes | The ID of the person to be shared, which may be the user ID of the Quick BI or the user group ID.
| de4bc5f9429141cc8091cdd1c15b**** |
| ShareToType | integer | Yes | The share type of the template. Valid values:
| 0 |
| ExpireDate | long | Yes | The validity period of the share. The value is a timestamp in milliseconds. | 1608202110838 |
| AuthPoint | integer | Yes | The scope of authorization. Valid values:
| 3 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "05739b8e-3de0-4204-9669-7f04f02522b9",
"Result": true,
"Success": true
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| Your instance has expired. | |||
| The specified instance does not exist. | |||
| - | |||
| The specified organizational unit does not exist. | |||
| The specified user is not in the organizational unit. | |||
| This work does not exist. It may have been deleted. Work ID is %s. | |||
| The group workspace does not exist. | |||
| The workspace is not owned by the organization. | |||
| You must specify the %s parameter. | |||
| Content in the current group workspace cannot be shared. | |||
| The user is not in your organization. | |||
| The personal information is invalid. | |||
| Content in the current group workspace cannot be shared with another organization. | |||
| The user group does not exist. | |||
| Usergroup is not belong to current organization. | |||
| The parameter is invalid. | |||
| An internal system error occurred. | |||
| - |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| View Change Details |
