我正在嘗試創建/更新LTI鏈接,但當我提出請求時獲取404。我使用Instructor憑據從https://apitesttool.desire2learnvalence.com嘗試此操作(我可以通過調用whoami API來確認它)。教練正在註冊課程(org_unit_id是6689)。測試沙盒託管在http://vxxxxxxxx。 brightspacetrial .com。在D2L中獲得404 API
POST /d2l/api/le/unstable/lti/link/6689 Content Type:application/json Data: { "UseToolProviderSecuritySettings": false, "Title": "Tiltl2", "Url": "https://127.0.0.1:8000/lti/d2llaunch12/", "Description": "<p>Points to Local Server1</p>", "Key": "", "IsVisible": true, "SignMessage": true, "SignWithTc": true, "SendTcInfo": true, "SendContextInfo": true, "SendUserId": true, "SendUserName": true, "SendUserEmail": true, "SendLinkTitle": true, "SendLinkDescription": true, "SendD2LUserName": false, "SendD2LOrgDefinedId": false, "SendD2LOrgRoleId": false, "CustomParameters": null } Response: Unknown error occured (HTTP status 404)
我已經使用了正確的路由,並且在GET請求中獲得了正確的響應。
GET /d2l/api/le/(version)/lti/link/(orgUnitId)/(ltiLinkId) GET /d2l/api/le/(version)/lti/link/(orgUnitId)/
我不知道爲什麼這是給404請幫
我認爲,首先,您的後端LMS至少運行10.4.11,其次,調用的調用用戶上下文有權限管理外部學習工具? –
是的,我們正在沙箱上運行10.5.4,並且用戶需要權限 – Vikas