How to set access token when retrieving content topic file

Grace.Zhu42
Posts: 5 ✭
in Development
I received below error message : { Errors: [ {Message: "Insufficient scope to call API.Required: content:modules:read"} ] } when using API GET /d2l/api/le/(version)/(orgUnitId)/content/topics/(topicId)/file Per D2L document(https://docs.valence.desire2learn.com/res/content.html?highlight=d2l api le version orgunitid content topics topicid file#put--d2l-api-le-(version)-(orgUnitId)-content-topics-(topicId)-file), its Oauth2 Scopes should be content:topics:read Currently, the token scope that I set is core:*:* datahub:*:* What is the syntax to set the scope for content:topics:read ? Thank you in advance!
Tagged:
Answers
-
Hey @Grace Zhu ,
I can help here. The syntax for the scope is actually exactly as the error message reads:" content:topics:write". If you were doing more with content topics and you could also do something along the lines of "content:*:*".
Thank you,
-
Thank you very much! It works now.
-
What is the Content syntax where do I find it even I get same error message @Grace Zhu
-
@logesh ravichandran I used "content:*:*" for downloading the topic files.
Categories
- All Categories
- 6 Thought Leadership
- 7 Known and Fixed Issues
- 6 Product Roadmap
- 553 Archived
- 10 Accessibility
- 27 Community Corner
- 2 Welcome
- Updates
- Member Spotlights
- 4 Events
- 242 Development
- 746 Customer Enablement
- Evaluate - Assess Student Learning
- Get Comfortable with Brightspace
- Communicate - Engage with Your Students
- 1 Create - Set up your Brightspace course
- Action - Add or create student activities
- 26 Partners
- 8 Product News
- 2022
- 2022 Release Notes
- 2021 Release Notes
- 4 Training
- andycat