npm
packages, and can connect external integrations that enhance your overall extensibility experience. To learn more about what Actions offer, read Understand How Auth0 Actions Work.To help with your migration, we offer guides that will help you migrate from Rules to Actions and migrate from Hooks to Actions. We also have a dedicated Move to Actions page that highlights feature comparisons, an Actions demo, and other resources to help you on your migration journey.To read more about the Rules and Hooks deprecation, read our blog post: Preparing for Rules and Hooks End of Life.PATCH
call to the Update a Hook endpoint. Be sure to replace HOOK_ID
and MGMT_API_ACCESS_TOKEN
placeholder values with your Hook ID and Management API , respectively.
Value | Description |
---|---|
HOOK_ID | ID of the Hook to update. |
MGMT_API_ACCESS_TOKEN | Access Tokens for the Management API with the update:hooks . To learn more, read Management API Access Tokens. |
HOOK_NAME | Name of the Hook to create. |
HOOK_SCRIPT | Script that contains the code for the Hook. Should match what you would enter if you were creating a new hook using the Dashboard. |
enabled
property represents whether the rule is enabled (true
) or disabled (false
).X-RateLimit-Remaining
header and act appropriately when the number returned nears 0.Additionally, add logic to handle cases in which you exceed the provided rate limits and receive the 429
HTTP Status Code (Too Many Requests
). In this case, if a re-try is needed, it is best to allow for a back-off to avoid going into an infinite retry loop.