---
title: "Revert Pending Change"
method: POST
path: "/api/agents/{agent_id}/pending-changes/revert"
tags: ["agents"]
---

# Revert Pending Change

`POST /api/agents/{agent_id}/pending-changes/revert`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agents/{agent_id}/pending-changes/revert`
- Auth: none declared

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- PendingChangeRevertBody
  - `proposal_id` string, uuid, required

## Response `200`

Successful Response

- PendingChangeProposal
  - `revertible` boolean
  - `id` string, required
  - `agent_identity_id` string, required
  - `field` string, required
  - `proposed_value` unknown, required
  - `previous_value` unknown
  - `rationale` string, nullable, required
  - `status` string, required
  - `source` string, required
  - `change_set_id` string, nullable, required
  - `created_at` string, nullable, required
  - `expires_at` string, nullable, required
  - `decided_at` string, nullable, required
  - `decided_by_identity_id` string, nullable
  - `decided_by_display_name` string, nullable
  - `decision_mode` 'automatic' | 'owner' | 'agent', nullable
  - `applied_version_number` integer, nullable, required
  - `rejection_reason` string, nullable, required
  - `review_owner_identity_id` string, nullable
  - `policy_explanation` string, required
  - `proposed_by_message_id` string, nullable
  - `proposed_by_chat_id` string, nullable
  - `requested_by_identity_id` string, nullable
  - `requested_by_display_name` string, nullable
  - `requester_standing` 'owner' | 'self' | 'other', nullable
  - `origin_chat_id` string, nullable
  - `origin_counterpart_identity_id` string, nullable
  - `origin_counterpart_display_name` string, nullable
  - `origin_counterpart_standing` 'owner' | 'other', nullable
  - `context` object, nullable
  - `apply_error` string, nullable

## Other responses

- `422`: Validation Error

---

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