Create a webhook
To create a webhook, use the POST method. The POST body must contain at least the webhook and tableName parameters in JSON format.
| Component | Description |
|---|---|
|
HTTP method |
POST |
|
URL |
https://host/fmi/odata/version/database-name/Webhook.Add host – FileMaker Cloud or FileMaker Server host name version – the OData version, always v4 database-name – the name of the hosted database Example: |
| Parameters |
JSON example: Copy
|
Notes
-
queryHeaderscontrol how the webhook payload is generated, whileendpointHeaders(or the legacyheaders) are always sent to the endpoint without affecting processing. In the example above,queryHeaderswith:-
"Prefer": "fmodata.entity-ids"will cause the webhook payload to use entity IDs instead of table and field names. -
"Accept": "application/json;IEEE754Compatible=true"will enclose decimal values in quotes.
-
-
maxFailedAttemptsapplies to the created webhook. SettingmaxFailedAttemptsto0indicates no maximum and that the webhook will retry sending the payload indefinitely until either the payload is received successfully or the webhook is deleted. Retry attempts are logged in the fmodata.log file. -
If only webhook and tableName are included in the request, the following parameters will use their default values:
Copy{
...
"headers": {},
"notifySchemaChanges": false,
"maxFailedAttempts": 0,
"select": "",
"filter": ""
}