> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Conflict

> Resolve one conflict by its index.

## Overview

Resolves one conflict. `action` is one of:

| Action | Result |
| - | - |
| `keep_new` / `keep_old` | Delete the other memory. |
| `keep_both` | Change nothing; mark the conflict resolved. |
| `expire_old` / `expire_new` / `expire_both` | Expire the memory or memories (reversible). |
| `remove_both` | Delete both memories. |
| `manual` | Store `manual_content` as a new memory (`provenance: corrected`, tag `conflict-resolution`), then delete both originals. If storing fails, both originals are kept. |

## Authentication

**x-api-key** `string` *required*

Your Memanto Cloud API key (`mk_...`). See [Authentication](https://docs.memanto.ai/cloud/api/introduction.md#authentication).

## Path Parameters

**agent\_id** `string` *required*

The agent's ID.

## Body

**conflict\_index** `integer` *required*

The conflict's `index` from [List Conflicts](https://docs.memanto.ai/cloud/api/conflicts/list-conflicts.md).

**action** `string` *required*

See the table above.

**date** `string`

`YYYY-MM-DD` of the scan. Defaults to today (UTC).

**manual\_content** `string`

Required when `action` is `manual`.

**manual\_type** `string` (default: fact)

Memory type for the `manual` memory.

```bash cURL theme={null}
curl -X POST "https://api.memanto.ai/agents/my-agent/conflicts/resolve" \
  -H "x-api-key: $MEMANTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "date": "2026-11-18",
    "conflict_index": 0,
    "action": "keep_new"
  }'
```

```json 200 - OK theme={null}
{
  "agent_id": "my-agent",
  "date": "2026-11-18",
  "action": "keep_new",
  "status": "resolved",
  "deleted": "3f2a…"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.