---
title: "Change an export's endpoint, headers or signals, or turn it off and on."
method: POST
path: "/v1/otel-exports/{id}:update"
tags: ["observability"]
---

# Change an export's endpoint, headers or signals, or turn it off and on.

`POST /v1/otel-exports/{id}:update`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/otel-exports/{id}:update`
- Auth: HTTP bearer

## Path parameters

- `id` string, required: Resource identifier (UUID).

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `endpoint` string: The OTLP/HTTP base URL, as OTEL_EXPORTER_OTLP_ENDPOINT: logs go to <endpoint>/v1/logs and metrics to <endpoint>/v1/metrics.
  - `headers` object: Replaces every header.
  - `signals` string[]: What to send: "logs" (events as log records) and "metrics" (CPU and memory gauges). Both when omitted.
  - `enabled` boolean: false stops pushing. Turning it back on sends from that moment, not a backlog.

## Response `200`

Success

- object
  - `id` string, required
  - `endpoint` string, required
  - `headerNames` string[]: Header names only; values are never shown.
  - `signals` string[], required
  - `enabled` boolean, required
  - `createdAt` string
  - `updatedAt` string
  - `lastAttemptAt` string, nullable
  - `lastSuccessAt` string, nullable
  - `lastError` string, nullable
  - `failures` integer
  - `exportedEvents` integer
  - `exportedPoints` integer

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
