---
search:
  tags:
    - Routes and domains
    - PATCH
seo:
  description: >-
    Edits the route list and nothing else: no module, no other spec key.…
    Reference for the PATCH /v1/apps/{project}/routes endpoint in the Sproutboat
    Cloud API.
sidebar:
  label: Add and remove routes
  badge: PATCH
title: Add and remove routes
type: openapi-operation
---
Edits the route list and nothing else: no module, no other spec key. Removals run first, then additions are
appended; a route in neither list stays. A route is a hostname, or `hostname/path/prefix` (at most 8 segments,
no trailing slash). A team may add `<label>.<team slug>.sproutboat.app` names, or hostnames it has verified under
`/v1/domains`; other names are 403 `host-not-yours`. A route another app holds is 409 `route-taken`. At most 64
routes per app. Bumps `record_generation`.

`PATCH /v1/apps/{project}/routes`
