Forum Discussion
bbearchell
8 years agoFrequent Visitor
Cant access /groups/{group_Id}/reports/{report_id}/GenerateToken
I can access /groups/{group_Id}/reports and get a list of reports but I am unable to get a single report or generate an embedded token. Keep getting 400 bad requests. Any insight and direction would ...
nissandookeran
8 years agoRegular Visitor
For me it was because I was missing the datasetId parameter in my request body like the example at https://msdn.microsoft.com/en-us/library/mt784614.aspx shows
{
"accessLevel": "View",
"identities": [
{
"username": "EffectiveIdentity",
"roles": [ "Role1", "Role2" ],
"datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
}
]
}