Skip to main content

Update router

PATCH 

/v1/routers/:router_name

Change the fields you send and keep the rest.

  • target_models and providers are replaced as a whole: send the full list. Model entries are filled from the catalog as on create.
  • A provider sent without api_key keeps its stored key.
  • mode can't change. Leave it out, or send the router's current mode.
  • A new name takes effect immediately: requests that use the old name fail with 404.

Request​

Responses​

The updated router