API Call to the Learner Usage Dataset

Options

I am trying to automate the download of the Learner Usage Dataset and am running into an issue with my test call in Postman. I I using the below from the "Get List of Available Data Sets" sample; however whenever I must be missing something because when I try to run this, I am getting this error: { Errors: [ {Message: "No scopes defined for specified requests."} ] }. I added "datasets:*:*" to my scope but I'm not sure that Postman is seeing it.

{
"DataSetId": "{{LearnerUsageGUID}",
"Name": "Learner Usage",
"Description": "The learner usage data set returns the activity for all learners in course offerings.",
"Category": "AdvancedDataSets",
"Filters": [
{
"Name": "parentOrgUnitId",
"Type": 2,
"Description": null,
"DefaultValue": null
},
{
"Name": "startDate",
"Type": 1,
"Description": null,
"DefaultValue": null
},
{
"Name": "endDate",
"Type": 1,
"Description": null,
"DefaultValue": null
},
{
"Name": "roles",
"Type": 3,
"Description": null,
"DefaultValue": null
}
]
}

Tagged:

Answers

  • Derik.P.149
    Derik.P.149 Posts: 13 🌱
    Options

    Did you generate a new token and update your scope declaration in Postman after you altered the scopes in Brightspace?