Skip to main content
Question

How to add an event listener to an instance in Metadata

  • May 22, 2025
  • 2 replies
  • 4 views

Forum|alt.badge.img

Hi,

 

There is a metadata instance in a box file in our application.

We have set the status of the metadata from a dropdown. 

Depending on that value, our application should reflect that in our front end.

So I want to add an event listener to that metadata instance.

How can I achieve that? Any help is appreciated.

 

2 replies

Forum|alt.badge.img

 

Webhooks may work for you - https://developer.box.com/docs/work-with-webhooks

You can define a webhook for that specific file and monitor whichever events you need to (sounds like you want to listen for METADATA_INSTANCE_UPDATED events) and have the webhook call a specific endpoint in your application to update the newly updated metadata value. I don't see a sample of what the request looks like that the webhook sends but you can assume it will have the box id of the file that was updated. You will need to just test it out and log out the request to see.


Forum|alt.badge.img

Thank you for your reply Jake!