How to read the projectId from webhook callback?

96 Views Asked by At

The POST /webhooks/v1/systems/data/hooks works fine, the events are created as expected, but the callback is missing the project_id for A360 that I need to access the file.

How to include that on the callback payload?

1

There are 1 best solutions below

0
On BEST ANSWER

You can use the hookAttribute property on the POST body and include custom information, such as the projectId or any other information from your app. Here is an example:

{
   "callbackUrl": "http://abcd1234.ngrok.io/forge/callback",
   "scope": {
      "folder": "urn:adsk.wipprod:fs.folder:co.abcd1234"
   },
   "hookAttribute": {
      "projectId": "a.1234.abcd.5678.defg"
   }
}