Manages Meilisearch webhooks.
Summary
Functions
Creates a new webhook.
Creates a new webhook, raising on error.
Deletes a webhook by UUID.
Deletes a webhook, raising on error.
Retrieves details of a single webhook by UUID.
Retrieves details of a single webhook, raising on error.
Lists all webhooks.
Lists all webhooks, raising on error.
Updates an existing webhook.
Updates an existing webhook, raising on error.
Functions
Creates a new webhook.
Examples
params = %{
url: "https://my-api.com/webhook",
events: ["task.succeeded", "task.failed"]
}
Meili.Webhook.create(params)
Meili.Webhook.create(client, params)
Creates a new webhook, raising on error.
Deletes a webhook by UUID.
Examples
Meili.Webhook.delete("some-uuid")
Meili.Webhook.delete(client, "some-uuid")
Deletes a webhook, raising on error.
Retrieves details of a single webhook by UUID.
Examples
Meili.Webhook.get("some-uuid")
Meili.Webhook.get(client, "some-uuid")
Retrieves details of a single webhook, raising on error.
Lists all webhooks.
Examples
Meili.Webhook.list()
Meili.Webhook.list(client)
Lists all webhooks, raising on error.
Updates an existing webhook.
Examples
Meili.Webhook.update("some-uuid", url: "https://new-url.com")
Meili.Webhook.update(client, "some-uuid", %{events: ["*"]})
Updates an existing webhook, raising on error.