---
# @generated by sylphx-gen. Do not edit.
title: "Update an uptime source"
description: "`observability.uptime_sources.update` (PATCH /v1/{uptime_source.name}): Configures manifest reconciliation; absent subscriptions require an empty etag."
type: reference
product: alerts
summary: "Configures manifest reconciliation; absent subscriptions require an empty etag."
updated: 2026-09-28
nav: false
---

Configures manifest reconciliation; absent subscriptions require an empty etag.

- **Path** `PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source`
- **Scope** `observability:write`
- **Effect** `write` — a successful call changes state.
- **Collection** [uptime_sources](/docs/api/uptime_sources)
- **Query** `update_mask`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `uptime_source` | `UptimeSource` | Subscription with an etag from Get, or empty on initial setup. Required. |
| `update_mask` | `field_mask` | Only `spec` is supported; omission also replaces the whole spec. |

### UptimeSource

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Only `uptime_sources/manifest` is supported. |
| `meta` | `ResourceMeta` | Lifecycle-bound etag and generation. |
| `spec` | `UptimeSourceSpec` | Delegated source reconciliation policy. Required. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |

### UptimeSourceSpec

| Field | Type | What it is |
| --- | --- | --- |
| `execution_delegation` | `string` | Exact Access delegation reference; credentials never enter this resource. Required. |
| `paused` | `bool` | Stops source reconciliation; existing checks keep their own pause policy. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Only `uptime_sources/manifest` is supported. |
| `uid` | `string` | Never reused; ownership receipts survive an empty source set. Output only. |
| `meta` | `ResourceMeta` | Lifecycle-bound etag and generation. |
| `spec` | `UptimeSourceSpec` | Delegated source reconciliation policy. Required. |
| `status` | `UptimeSourceStatus` | Last applied source and visible reconciliation outcome. Output only. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

### UptimeSourceSpec

| Field | Type | What it is |
| --- | --- | --- |
| `execution_delegation` | `string` | Exact Access delegation reference; credentials never enter this resource. Required. |
| `paused` | `bool` | Stops source reconciliation; existing checks keep their own pause policy. |

### UptimeSourceStatus

| Field | Type | What it is |
| --- | --- | --- |
| `observed_generation` | `int64` | Subscription generation last fully converged. Output only. |
| `conditions` | `Condition[]` | Reconciling or Ready, independently of probe health. Output only. |
| `source_uid` | `string` | Last fully converged source identity. Output only. |
| `applied_revision` | `string` | Opaque owner-provided revision of the complete desired set. Output only. |
| `reason` | `string` | Finite error code, empty after successful convergence. Output only. |
| `last_attempt_time` | `timestamp` | Latest completed reconciliation attempt. Output only. |
| `delegate_principal` | `string` | Stable attested Observability workload principal to name as delegate. Output only. |

### Condition

| Field | Type | What it is |
| --- | --- | --- |
| `type` | `string` | The condition type, for example `Ready`. |
| `status` | `ConditionStatus` | Whether the condition holds. One of `true`, `false`, `unknown`. |
| `observed_generation` | `int64` | The generation this observation was made against. |
| `reason` | `string` | A machine-readable UpperCamelCase reason. |
| `message` | `string` | A customer-safe human-readable message. |
| `severity` | `Severity` | How severe a FALSE condition is. One of `info`, `warning`, `error`. |
| `transition_time` | `timestamp` | When `status` last changed. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`ETAG_MISMATCH`](/docs/api/errors/ETAG_MISMATCH) — The etag sent does not match the Resource's current etag.
- [`IDEMPOTENCY_KEY_REUSED`](/docs/api/errors/IDEMPOTENCY_KEY_REUSED) — An Idempotency-Key was reused with another body.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X PATCH "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source","spec":{"execution_delegation":"…"}}'
```

**TypeScript**

```ts
const response = await sylphx.observability.uptimeSources.update({ uptimeSource: { name: 'orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source', spec: { executionDelegation: '…' } } })
```

**Rust**

```rust
let mut req = sylphx::observability::UpdateUptimeSourceRequest::default();
req.uptime_source = Some(sylphx::observability::UptimeSource {
    name: "orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source".to_string(),
    spec: Some(sylphx::observability::UptimeSourceSpec {
        execution_delegation: "…".to_string(),
        ..Default::default()
    }),
    ..Default::default()
});
let response = sx.observability().uptime_sources().update(req).await?;
```

**CLI**

```bash
sylphx observability uptime-sources update orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source --spec.execution-delegation …
```

**MCP**

```json
{ "method_id": "observability.uptime_sources.update", "args": {"uptime_source":{"name":"orgs/acme/projects/shop/envs/production/uptime_sources/uptime-source","spec":{"execution_delegation":"…"}}} }
```
