When creating a webhook for a BIM360 Team project, I get the error "Access denied for the scope a.123456789 that you are trying to create hook on" when creating with the project id with the below json body and request:
https://developer.api.autodesk.com/webhooks/v1/systems/data/events/dm.version.added/hooks
{
"callbackUrl": "http://test.com/callback",
"scope": {
"folder": "a.123456789"
}
}
This does succeed if a top folder URN is replaced in the json. I have tried with both 2-legged and 3-legged OAuth with data:create scope. Is there something I am missing?
@MandiBishop, adding to @Jadranko's answer, the Webhook API supports ONLY folders, so you must provide a Folder ID. Indeed the documentation is not clear and I have logged a request to improve it. Sorry about this confusion.