Adds a work to a user's favorites.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:SaveFavorites |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserId |
string |
Yes |
The ID of the user who favorites the work. This is the Quick BI UserID, not the Alibaba Cloud UID. |
121344444790**** |
| WorksId |
string |
Yes |
The ID of the work being favorited. |
d23e84a1-82a0-4292-bfdb-521306c3**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
boolean |
Indicates whether the operation succeeded. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": true,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | |
| 400 | Report.NotExist.Error | This work does not exist. It may have been deleted. Work ID is %s. | |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | |
| 400 | Workspace.Status.Error | This group workspace has been disabled or deleted. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.