Skip to main content

Replace a route

PATCH 

/v1/projects/:project_id/channels/:channel_id/routes/:route_id

Full replace, the same validation as create: an omitted field takes its create default. Where that default would widen a value the route sets, omission is 400 replace_omits_fields, naming the fields in details.fields, and nothing is written: a set surface (the default is any surface), a non-empty match (every message), a non-empty config (it carries the Discord allowlist), and status on a disabled route (the default re-activates it). Send the value to keep it, or "surface": null, "match": {}, "config": null, "status": "active" to clear it.

Request​

Responses​

Route replaced.