Inventory Webhooks: Difference between revisions

Jump to navigation Jump to search
Andrian (talk | contribs)
No edit summary
Andrian (talk | contribs)
No edit summary
Line 24: Line 24:


This can be used to keep external services synchronised with minimum delay whenever changes occur.
This can be used to keep external services synchronised with minimum delay whenever changes occur.


Typical JSON data posted by the web hook request:
Typical JSON data posted by the web hook request:
  {"roomId":"123456","propId":"12345","ownerId":"1234","action":"SYNC_ROOM"}
  {"roomId":"123456","propId":"12345","ownerId":"1234","action":"SYNC_ROOM"}


You can add data in the "Custom Header" field like this:
You can add data in the "Custom Header" field like this:
  my_key:my_value
  my_key:my_value