Update a route
Updates the destination of the route bound to <address>@<domain>. The address itself is the resource identity and cannot be changed; delete and recreate the route to rename it.
Authorization
Authorization<token>API key authentication. Allowed headers-- "Authorization: ApiKey <novu_secret_key>".
In: header
Request Body
application/jsonRequiredagentIdstringAgent identifier; required when type is agent, ignored when type is webhook.
typestringValue in:
"agent" | "webhook"dataobjectReplaces route metadata when provided (max 10 keys, 500 characters total for keys+values).
Path Parameters
domainRequiredstringaddressRequiredstringHeader Parameters
idempotency-keystringA header for idempotency purposes
Response Body
OK
_idRequiredstring_domainIdRequiredstringaddressRequiredstringagentIdstringInternal id of the destination agent. Only present for agent routes.
typeRequiredstringValue in:
"agent" | "webhook"_environmentIdRequiredstring_organizationIdRequiredstringcreatedAtRequiredstringupdatedAtRequiredstringdataobjectString key-value metadata (max 10 keys, 500 characters total when set via API).