---
title: "Update post monitor"
method: PATCH
path: "/api/v1/monitors/posts/{id}"
tags: ["Monitors"]
---

# Update post monitor

`PATCH /api/v1/monitors/posts/{id}`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/monitors/posts/{id}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Updates a post monitor's label, event types or active state. Turning a paused monitor on reads the post first, & answers 409 while X hides it.

## Path parameters

- `id` string, required

## Request body

- object
  - `eventTypes` PostEventType[]: Post event types to send. Without it, a monitor sends new replies, new quotes, like & retweet changes, edits & deletion.
  - `isActive` boolean
  - `name` string, nullable: New label for the post monitor. Send null to remove it.

## Response `200`

Post monitor updated

- PostMonitor: Post monitor that tracks 1 X post's replies, quotes, edits & metrics.
  - `id` string, required
  - `name` string: Customer-set label of the post monitor, when set.
  - `postId` string, required: ID of the post you gave.
  - `postUrl` string, uri, required
  - `authorId` string, required: Permanent X user ID of the post's author.
  - `authorUsername` string, required
  - `authorName` string, required
  - `authorAvatarUrl` string, uri: The author's profile picture. Omitted when X shows none.
  - `authorVerified` 'blue' | 'business' | 'government': The author's verified badge on X. Omitted when the author has none.
  - `media` object[], required: Photos, videos & GIFs on the post, in X's order.
    - `kind` 'gif' | 'photo' | 'video', required
    - `url` string, uri, required: The image URL. For a video or GIF, its preview image.
  - `text` string, required: Text of the newest version Xquik read.
  - `postedAt` string, date-time, required
  - `eventTypes` PostEventType[], required: Post event types to send. Without it, a monitor sends new replies, new quotes, like & retweet changes, edits & deletion.
  - `isActive` boolean, required
  - `createdAt` string, date-time, required
  - `nextBillingAt` string, date-time, required: Next hourly credit charge time for this post monitor.
  - `baseline` object, required: Counts Xquik read when tracking began. Each metric's gain counts from here. views is null when X showed no view count.
    - `at` string, date-time, required: When Xquik read these counts from X.
    - `views` integer, nullable, required
    - `likes` integer, required
    - `retweets` integer, required
    - `replies` integer, required
    - `quotes` integer, required
    - `bookmarks` integer, required
  - `pausedReason` 'insufficient_credits' | 'x_post_deleted' | 'x_post_protected' | 'x_post_unavailable': Why Xquik paused this post monitor. insufficient_credits means the balance could not pay an hour, so add credits & resume. The other 3 mean X stopped showing the post. Absent when the monitor is active or you paused it yourself.
  - `pausedAt` string, date-time: When Xquik paused this post monitor.
  - `metrics` PostMetrics, required: The 6 metrics of a post.
    - `views` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required
    - `likes` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required
    - `retweets` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required
    - `replies` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required
    - `quotes` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required
    - `bookmarks` PostMetricReading, required: A metric's current value & its gain since tracking began. Both are null when X shows no count, as for views on old posts.
      - `current` integer, nullable, required
      - `gain` integer, nullable, required

## Other responses

- `400`: Invalid input. A value past its maxLength gets this answer, & the message names the field & its limit. Bad input costs nothing, since it's refused before any read.
- `401`: Unauthenticated
- `403`: The API key lacks the monitors scope this route needs. A paused API key gets `api_key_paused`, so resume it on the dashboard.
- `404`: Not found
- `409`: X still hides the post, so the monitor stays paused & costs nothing. `reason` is deleted, protected or author_suspended when X names it.
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `502`: Dependency unavailable, unauthorized, or limited. Default v1 uses 502. Best-practice responses use 424 for transparent dependency failures. Search answers 424 `search_unavailable` when X fails the query itself, or when a filtered search goes far back without a match. The message says how far back the search looked. "X can't run this search" appears only when it's true. Searches X can't run fail at once, with the fix. When X fails a read, Xquik answers 502 `x_api_unavailable` with `X-Xquik-Cause` & `Retry-After`. Retry after that many seconds.
- `503`: Retry x_api_unavailable after Retry-After. With X-Xquik-Busy, retry until your deadline. Overload is announced with 503, `Retry-After` & a reason.
- `default`: Unexpected error.

## Changes

- **2026-10-31** `2e8e935f1661`: 1 info
  - endpoint added
- **2026-10-31** `c57c57352955`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `02f0b86fb58d`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `d7a994ca1067`: 1 info
  - endpoint added
- **2026-10-30** `722bcc0a4fec`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/monitors/posts/:id/patch.md)

---

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