How to set access token when retrieving content topic file

Grace.Zhu1777
Grace.Zhu1777 Posts: 3
edited November 2022 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