Will an item update done via the API trigger hooks?
I am currently working on a script, which goes on an infinite loop after an update, by probably triggering the update hook on each update.
My understanding was that an update via API wouldn't trigger the hook.
If this is true, is there a way to prevent this behavior?
-
Could someone post an example of using the hook parameter in a php item delete call ? Does the hook parameter go in the options array or the attributes array or what ?
-
I can see the Silent parameter in the Java API client for item create, update, and delete; however, I do not see the Hook parameter. Is it possible for hooks to be disabled if the Hook parameter is added in the same way as the Silent parameter in podio-java? Why does podio-java include the Silent param and not the Hook?
-
Hi Sarah,
The hook parameter was introduced much later than silent and was probably just never added to the java client. Should be simple to add yourself. If you're feeling adventurous you can make the change and create a pull request on github so we can get it added to the main repository. :)
/Andreas
-
Thank you again Andreas and Christian for your help!
The hook parameter is now available in the Java wrapper for item update.
https://github.com/podio/podio-java/pull/8/files
All the best!
Please sign in to leave a comment.
Comments
15 comments