JoggAI icon

JoggAI

Interact with the JoggAI API to create and manage AI videos

Overview

This node allows users to update an existing webhook endpoint in the JoggAI platform. It is useful for managing webhook subscriptions dynamically, such as changing the URL where events are sent, modifying which events trigger the webhook, or enabling/disabling the webhook without deleting and recreating it.

Typical use cases include:

  • Updating the callback URL when your receiving server changes.
  • Adjusting event subscriptions to receive notifications only for relevant events (e.g., video generation success or failure).
  • Temporarily disabling a webhook without removing its configuration.

For example, if you have a webhook that notifies your system when a video is successfully generated, but you want to add notifications for avatar creation failures, you can update the webhook's subscribed events accordingly.

Properties

Name Meaning
Endpoint ID The unique identifier of the webhook endpoint to update.
URL The new HTTPS URL where webhook events will be sent.
Events The list of event types to subscribe to. Options: Generated Video Success, Generated Video Failed, Create Avatar Success, Create Avatar Failed.
Status The new status of the webhook endpoint. Options: enabled, disabled.

Output

The node outputs JSON data representing the updated webhook endpoint details returned from the API after the update operation. This typically includes confirmation of the updated fields such as the endpoint ID, URL, subscribed events, and status.

No binary data output is expected from this operation.

Dependencies

  • Requires an API key credential configured in n8n to authenticate with the JoggAI API.
  • The node depends on the external JoggAI service to perform webhook updates.
  • Network connectivity to the JoggAI API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Providing a non-HTTPS URL will likely cause the API to reject the update.
    • Using an invalid or non-existent Endpoint ID will result in an error.
    • Omitting required properties like Endpoint ID, URL, or Events will cause validation errors.
    • Network or authentication failures may prevent successful updates.
  • Error messages:

    • "Webhook endpoint ID is required": Ensure the Endpoint ID property is set.
    • "Invalid URL format": Confirm the URL starts with https://.
    • "Unauthorized" or "Authentication failed": Verify the API key credential is correctly configured.
    • "Webhook not found": Check that the Endpoint ID corresponds to an existing webhook.

Resolving these usually involves verifying input parameters, ensuring valid credentials, and confirming network access.

Links and References

Discussion