How to acknowledge delivery via Python API

Hi all,

I am finally taking the leap and investigating webhooks. The docs say the following:
"This ID can be used to update the delivery record to include an acknowledgement using the ShotGrid REST API.

This is pretty vague (at least for somebody like me), is there an example of this somewhere?
E.g:
Once I have the webhook’s payload in Python I might do something time consuming, so I’d want to kick off a threaded worker process and acknowledge the webhook delivery immediately, so I don’t hold up the queue.
How woudl I do the latter?

Cheers,
frank

Did you ever solve this?

I don’t think I did.

If your webhook needs to do more complex logic than simply updating a status then it would be better to acknowledge to the webhook service that your webhook endpoint has received the request and is processing it.

You acknowledge using a simple 200 response.

Once your event has actually been processed succesfully you can update the Webhook Delivery record status with 400 instead of 200. This means the event/delivery was processed.

https://developers.shotgridsoftware.com/rest-api/#update-a-delivery

1 Like