Skip to main content
Workers

Upsert Worker Config

Create or replace a worker configuration in each specified datacenter.

A normal configuration controls workers with direct, persistent connections. A serverless configuration starts workers through a URL and requires url and request_lifespan. Configurations for omitted datacenters are deleted. A failure can occur after some datacenters have already changed.

PUT https://api.rivet.dev/runner-configs/{runner_name}

Examples

Authentication

Send your namespace token as a bearer token in the Authorization header. Every control plane request also requires the namespace query parameter. See Authentication.

Path Parameters

NameTypeRequiredDescription
runner_namestringYesName of the worker pool to configure.

Query Parameters

NameTypeRequiredDescription
namespacestringYesName of the namespace to operate in.

Request Body

Content type: application/json.

FieldTypeRequiredDescription
datacentersobjectYesMap of datacenter names to worker configurations.

Responses

200

Whether the endpoint configuration changed.

FieldTypeDescription
endpoint_config_changedboolean
{
  "endpoint_config_changed": false
}