---
title: "Resolve Conflict"
method: POST
path: "/api/v2/agents/{agent_id}/conflicts/resolve"
tags: ["Sessions & Agents", "Memory Operations"]
---

# Resolve Conflict

`POST /api/v2/agents/{agent_id}/conflicts/resolve`

## Request

- The document declares no server URL.
- Auth: none declared

Resolve a conflict for an agent.

Uses the same underlying conflict resolution service used by CLI.

## Path parameters

- `agent_id` string, required

## Headers

- `x-session-token` string, nullable
- `authorization` string, nullable
- `X-Api-Key` string, nullable

## Cookies

- `memanto_session_token` string, nullable

## Request body

- ConflictResolveRequest: Request body for resolving a conflict
  - `conflict_index` integer, required: Conflict index to resolve
  - `action` 'keep_old' | 'keep_new' | 'keep_both' | 'remove_both' | 'expire_old' | 'expire_new' | 'expire_both' | 'manual', required: Resolution action. The keep_*/remove_both/manual actions delete the losing memory permanently; the expire_* actions retire it reversibly instead, keeping its content and audit trail.
  - `date` string, nullable: Conflict report date (YYYY-MM-DD). Defaults to today.
  - `manual_content` string, nullable: Required when action is 'manual'
  - `manual_type` string, nullable: Optional memory type for manual action

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-01** `4dbab4daf6d3`: 2 info
  - added the new optional `header` request parameter `X-Api-Key`
  - added the new optional `header` request parameter `authorization`
- **2026-08-20** `76f6cb85abaa`: 3 info
  - added the new `expire_both` enum value to the request property `action`
  - added the new `expire_new` enum value to the request property `action`
  - added the new `expire_old` enum value to the request property `action`
- **2026-07-09** `6c0f57766d0f`: 1 info
  - added the new optional `cookie` request parameter `memanto_session_token`
- **2026-07-06** `7af4afb7f21a`: 1 breaking, 5 info
  - request property `action` was restricted to a list of enum values
  - added the new `keep_both` enum value to the request property `action`
  - added the new `keep_new` enum value to the request property `action`
  - added the new `keep_old` enum value to the request property `action`
  - …2 more
- **2026-06-23** `3f3d8570f1a6`: 5 breaking, 1 warning
  - removed the enum value `keep_both` of the request property `action`
  - removed the enum value `keep_new` of the request property `action`
  - removed the enum value `keep_old` of the request property `action`
  - removed the enum value `manual` of the request property `action`
  - …2 more

[Operation history](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/changes/api/v2/agents/:agent_id/conflicts/resolve/post.md)

---

[API](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love.md) - [All operations](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/llms.txt) - [OpenAPI document](https://skmtc.dev/moorcheh-ai/apis/memanto-memory-that-ai-agents-love/revisions/ef842776283e?raw)
