mainContractItem.created-1.0
Event: | mainContractItem.created-1.0 |
System: | autodesk.construction.cost |
Scope: | project |
Trigger: | When a main contract item is created. |
Create a Webhook
Request
curl -X 'POST'\
-v 'https://developer.api.autodesk.com/webhooks/v1/systems/autodesk.construction.cost/events/mainContractItem.created-1.0/hooks'\
-H 'Content-Type: application/json'\
-H 'authorization: Bearer bNU4P0trbQKNSzxWksLPTzSbbmUz'\
-d '{
"callbackUrl": "http://bf067e05.ngrok.io/callback",
"scope": {
"project": "your-project-id"
}
}'
Show More
Callback Payload
Headers
x-adsk-delivery-id string | Payload delivery ID |
x-adsk-signature string | Hash-signature of the payload using secret token as the key.
It is prefixed with
sha1hash= . Your callback endpoint canverify the signature to validate the integrity of the payload.
|
Example Body
{
"version": "1.0",
"resourceUrn": "adsk.cost:project:77e7ae10-757f-4a29-81af-184342bfe47a",
"hook": {
"hookId": "a02b7559-7ace-459e-a1b7-d8ea5de6d531",
"tenant": "77e7ae10-757f-4a29-81af-184342bfe47a",
"callbackUrl": "http://bf067e05.ngrok.io/callback",
"createdBy": "V73BQ6TVMLWR",
"event": "mainContractItem.created-1.0",
"createdDate": "2021-09-16T10:44:24.761+00:00",
"lastUpdatedDate": "2021-09-16T10:44:24.761+00:00",
"system": "autodesk.construction.cost",
"creatorType": "O2User",
"status": "active",
"scope": {
"project": "77e7ae10-757f-4a29-81af-184342bfe47a"
},
"autoReactivateHook": true,
"urn": "urn:adsk.webhooks:events.hook:a02b7559-7ace-459e-a1b7-d8ea5de6d531",
"callbackWithEventPayloadOnly": false,
"__self__": "/systems/autodesk.construction.cost/events/mainContractItem.created-1.0/hooks/a02b7559-7ace-459e-a1b7-d8ea5de6d531"
},
"payload": [
{
"id": "0ac02383-7b20-44b6-8da1-16f6de03f9f8",
"resourceType": "mainContractItem"
}
]
}
Show More