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
- 200
- 400
- 401
- 403
- 404
- 409
Route replaced.
The request was malformed or failed validation.
Missing or invalid credentials.
The credential is scoped to a different project, or the caller's role in the project does not carry this action.
The resource does not exist (existence is not leaked).
The request conflicts with the resource's current state.