Releases/Winter 2021: Difference between revisions

Jump to navigation Jump to search
Line 53: Line 53:


[[File:Resco Cloud Connector Q4 with new features.png]]
[[File:Resco Cloud Connector Q4 with new features.png]]
=== Web triggers for REST API ===
Resco Cloud REST API now supports webhooks.
CreateWebhook: <code>/$hook?$entity={entity}&$action={action}</code>
* entity: entity name
* action: one of [Create | Update | Delete]
* POST BODY: <code><Url><CallbackUrl>URL to invoke</CallbackUrl></Url> </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>
=== Web triggers for OData ===
Resco Cloud OData API now supports webhooks.
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>


== Inspections ==
== Inspections ==

Navigation menu