---
title: "Update an RHC price alert (PRO+)"
method: PATCH
path: "/rhc/price-alerts/{id}"
tags: ["Robinhood Chain"]
---

# Update an RHC price alert (PRO+)

`PATCH /rhc/price-alerts/{id}`

## Request

- Base URL: `https://madeonsol.com/api/v1`
- URL: `https://madeonsol.com/api/v1/rhc/price-alerts/{id}`
- Auth: HTTP bearer

Only `name`, `delivery_mode`, `webhook_url` and `is_active` are mutable — changing a threshold mid-flight would make the alert's recorded events uninterpretable.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string, nullable
  - `delivery_mode` 'webhook' | 'websocket' | 'both'
  - `webhook_url` string, nullable
  - `is_active` boolean

## Response `200`

Updated.

- object
  - `chain` 'robinhood'
  - `alert` object
    - `id` integer
    - `name` string, nullable
    - `token_address` string
    - `token_symbol` string, nullable
    - `baseline_mc_usd` number
    - `drop_pct` number
    - `recovery_pct` number, nullable
    - `status` 'watching' | 'dipped' | 'recovered' | 'expired': `expired` = the rule outlived its window and was deactivated (terminal, like `recovered`).
    - `dip_low_mc_usd` number, nullable
    - `dip_fired_at` string, date-time, nullable
    - `delivery_mode` 'webhook' | 'websocket' | 'both'
    - `webhook_url` string, uri, nullable
    - `is_active` boolean
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Invalid body or id.
- `401`: Missing or invalid API key, or an expired free-tier key. Authentication-stage error: no `X-RateLimit-*` headers, no `_rid`.
- `403`: Forbidden. One of: the key's tier is below this endpoint's or parameter's gate (`tier_required` with an `upgrade` block); the public demo key used outside its allow-list (`demo_key_endpoint_not_allowed`); an invalid or revoked key; an origin-restricted key called from a disallowed origin (`code` `origin_not_allowed` / `origin_required`). `X-RateLimit-*` headers are present only on `tier_required`.
- `404`: Not found.
- `429`: Too many requests. Every 429 carries `Retry-After`. A quota 429 (`rate_limit_exceeded`, with `X-RateLimit-*`), a heavy-query concurrency 429 (`error_kind` `concurrency`/`capacity`), or the per-IP authentication-failure block (30 failed auths/min; plain `error` + `retry_after_seconds`, no `X-RateLimit-*`).
- `500`: Unexpected server error from the route (`Internal server error`, with `_rid`). Safe to retry with backoff. A failed API-key lookup is a 503 `auth_backend_unavailable`, never a 500.
- `503`: Temporarily unavailable — a Postgres statement timeout while the dataset is under load or maintenance (`statement_timeout`, with `X-RateLimit-*` and `_rid`), or the API-key lookup itself unavailable (`auth_backend_unavailable`, authentication stage: no `X-RateLimit-*`, no `_rid`, not counted as a failed authentication). Always carries `Retry-After`; honour it.

---

[API](https://skmtc.dev/madeonsol/apis/madeonsol-api.md) · [All operations](https://skmtc.dev/madeonsol/apis/madeonsol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/madeonsol/apis/madeonsol-api/revisions/d9531a28d83b?raw)
