添加資料作品的一個分享配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:AddShareReport |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| WorksId |
string |
是 |
分享作品的 ID。這裡的作品包括資料門戶,儀表板,試算表,自助取數。 |
6b407e50-e774-406b-9956-da2425c2**** |
| ShareToId |
string |
否 |
被分享者的 ID,可能是 Quick BI 的使用者識別碼,也可能是使用者組 ID。
|
de4bc5f9429141cc8091cdd1c15b**** |
| ShareToType |
integer |
是 |
分享類型。取值範圍:
|
0 |
| ExpireDate |
integer |
是 |
分享的有效期間限,格式為毫秒級時間戳記 。 |
1608202110838 |
| AuthPoint |
integer |
是 |
授與類型。取值範圍:
|
3 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
05739b8e-3de0-4204-9669-7f04f02522b9 |
| Result |
boolean |
返回介面執行結果。取值範圍:
|
true |
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
樣本
正常返回樣本
JSON格式
{
"RequestId": "05739b8e-3de0-4204-9669-7f04f02522b9",
"Result": true,
"Success": true
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Report.NotExist.Error | This work does not exist. It may have been deleted. Work ID is %s. | 作品不存在,可能已經被刪除。作品ID:%s。 |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | 群空間不存在。 |
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | 空間不在組織內。 |
| 400 | Workspace.Share.Forbidden | Content in the current group workspace cannot be shared. | 當前群空間設定了禁止分享。 |
| 400 | Workspace.OutsideShare.Forbidden | Content in the current group workspace cannot be shared with another organization. | 當前群空間設定了禁止組織外分享。 |
| 400 | Usergroup.Not.Exist | The user group does not exist. | 使用者組不存在。 |
| 400 | UserGroup.NotIn.Organization | The user group is not in the current organization. | 使用者組不在當前組織內。 |
| 400 | Share.ExpireDate.Error | The expire date is illegal. | 設定的到期時間不合法。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。