概述
分享儀表板給其他使用者
API簡介
API作用 | 透過呼叫該API,使用者可以將儀表板分享給指定使用者 |
APIURL | /v5/api/dashboard/share/user/result |
請求類型 | GET |
請求參數-Query參數
參數名 | 參數值 | 是否必填 | 描述說明 |
---|---|---|---|
entityId | 儀表板ID | 是 | 多個儀表板,可用「,」隔開 全部儀表板,值為空即可 |
userId | 使用者ID | 是 | 多個使用者,可用「,」隔開 全部使用者,值為空即可 |
回应實體
請求範例 | http://172.17.0.25:37799/webroot/decision/v5/api/dashboard/share/user/result?entityId=d76fdf3cfb1446aaa450d4668eb18196,b9947708a22e4c58a175019f07e443af&userId=b2e6d799-6a91-4779-aa08-a6d033cefeb5,9ffcfece-80d7-49b2-ac3e-d1f1224bb808&fine_auth_token=xxx 注:使用API時需要登入,需要傳遞token參數。 |
回应成功 | callback({ "data": "success" }) |
截圖示意 | ![]() |
取消分享儀表板
API簡介
API作用 | 透過呼叫該API,使用者可以將對某個使用者的儀表板分享設定取消掉 |
APIURL | /v5/api/dashboard/share/user/rejection/result |
請求類型 | GET |
請求參數-Query參數
參數名 | 參數值 | 是否必填 | 描述說明 |
---|---|---|---|
entityId | 儀表板ID | 是 | 多個儀表板,可用「,」隔開 全部儀表板,值為空即可 |
userId | 使用者ID | 是 | 多個使用者,可用「,」隔開 全部使用者,值為空即可 |
回应實體
請求範例 | http://172.17.0.25:37799/webroot/decision/v5/api/dashboard/share/user/rejection/result?entityId=d76fdf3cfb1446aaa450d4668eb18196,b9947708a22e4c58a175019f07e443af&userId=b2e6d799-6a91-4779-aa08-a6d033cefeb5,9ffcfece-80d7-49b2-ac3e-d1f1224bb808&fine_auth_token=xxx 注:使用API時需要登入,需要傳遞token參數。 |
回应成功 | callback({ "data": "success" }) |
截圖示意 | ![]() |
儀表板分享給哪些使用者
API簡介
API作用 | 獲取該儀表板分享給了哪些使用者 |
APIURL | /v5/api/dashboard/share/user |
請求類型 | GET |
請求參數-Query參數
參數名 | 參數值 | 是否必填 |
---|---|---|
entityId | 儀表板ID | 是 |
page | 頁碼 | 是 |
count | 每頁數量 | 是 |
keyword | 關鍵字 | 否 |
回应實體
請求範例 | http://172.17.0.25:37799/webroot/decision/v5/api/dashboard/share/user?entityId=6aae904df9284bef823921fac05fb247&page=1&count=2&fine_auth_token=xxx 注:使用API時需要登入,需要傳遞token參數。 |
回应成功 | callback({ "success": true, "code": "200", "message": "success", "data": [ "d0fa9ed7-f37c-474a-a157-c4809f4f0c28", "1453b447-5dc8-4d9b-a5ac-20f02db3e9dc" ], "errorCode": null, "detailErrorMsg": null, "errorMsg": null }) |
截圖示意 | ![]() |
分享給我的所有儀表板
API簡介
API作用 | 獲取分享給我(當前登入使用者)的所有儀表板資訊 |
APIURL | /v5/api/dashboard/share |
請求類型 | GET |
回应實體
請求範例 | http://172.17.0.25:37799/webroot/decision/v5/api/dashboard/share?fine_auth_token=xxx 注:使用API時需要登入,需要傳遞token參數。 |
回应成功 | callback({ "success": true, "code": "200", "message": "success", "data": [ { "createBy": "b5f0c2ee-640f-4039-a4d4-918b55354898", "folder": false, "description": null, "pId": "-2", "id": "73349c2beb6643238321957e4bf32fbe", "reportId": "73349c2beb6643238321957e4bf32fbe", "text": "返貨品畫像看板「已修改」2.0", "originType": "isShared" }, { "createBy": "b5f0c2ee-640f-4039-a4d4-918b55354898", "folder": false, "description": null, "pId": "-2", "id": "6aae904df9284bef823921fac05fb247", "reportId": "6aae904df9284bef823921fac05fb247", "text": "地產公司銷售監視", "originType": "isShared" } ], "errorCode": null, "detailErrorMsg": null, "errorMsg": null }) |
截圖示意 | ![]() |