OData service: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 164: Line 164:
...
...
</syntaxhighlight>
</syntaxhighlight>
== Webhooks ==
Resco Cloud OData API supports webhooks. A create, update, or delete operation on the server can trigger a callback to a URL of your choosing.
CreateWebhook: <code>/$hook?$entity={entity}&$action={action}</code>
* entity: entity name
* action: one of [Create | Update | Delete]
* POST BODY: <code>{ CallbackUrl: "URL to invoke" }</code>
* RESPONSE HEADER: Location: URL to delete webhook
The BODY of the request to the external URL is in JSON format: <code>'{ "id": "record id" }'</code>


== Limitations ==
== Limitations ==

Navigation menu