Sign In
API

routes.update


Description

Creates or updates a route.


Code Examples

# Write the request body to body.json before running
curl -X PUT -d '@body.json' 'https://api.rivet.gg/routes/{id}'



Schema

Request Parameters

  • id
    string path parameter
  • project
    nullable string query parameter
  • environment
    nullable string query parameter

Request

  • hostname
    string
  • path
    string
  • strip_prefix
    boolean

    Whether to remove the path prefix before sending the request to the actor.

  • route_subpaths
    boolean

    Whether to route all subpaths of this path

  • target
    object
    • target.actors
      nullable object

      Configuration for targeting actors.

      • target.actors.selector_tags
        map

        Tags of actors to route requests to.

Suggest changes to this page