---
title: "Update conversation policy"
method: PATCH
path: "/conversations/{conversationId}/policy"
tags: ["Conversations"]
---

# Update conversation policy

`PATCH /conversations/{conversationId}/policy`

## Request

- Base URL: `https://platform-api.visitoai.com/m2m/v1`
- URL: `https://platform-api.visitoai.com/m2m/v1/conversations/{conversationId}/policy`
- Auth: HTTP bearer

Requires `conversations:policy:write`. At least one operation is required. freezeForMinutes conflicts with unfreeze=true. Unresolved handoffs lock policy changes.

## Path parameters

- `conversationId` string, required

## Request body

- ConversationPolicyPatch
  - `statusAction` 'archive' | 'unarchive' | 'block' | 'unblock'
  - `manualEnabled` boolean
  - `freezeForMinutes` integer
  - `unfreeze` boolean: Clear the timed pause. Does not override manual mode or unresolved handoffs.

## Response `200`

Success

- ConversationPolicyMutation
  - `ok` boolean
  - `conversationId` string
  - `changed` boolean
  - `statusBefore` string
  - `statusAfter` string
  - `manualEnabledBefore` boolean
  - `manualEnabledAfter` boolean
  - `frozenUntilAtAfter` string, date-time, nullable
  - `conversationKey` string
  - `frozenUntilAtBefore` string
  - `isFrozenBefore` boolean
  - `isFrozenAfter` boolean
  - `frozenSecondsRemainingAfter` integer

## Other responses

- `default`: Structured error

---

[API](https://skmtc.dev/visitoai/apis/visito-m2m-api.md) - [All operations](https://skmtc.dev/visitoai/apis/visito-m2m-api/llms.txt) - [OpenAPI document](https://skmtc.dev/visitoai/apis/visito-m2m-api/revisions/98377d35c234?raw)
