---
title: "POST /projects/{project_id}/ai/conversations/{public_id}/permission-mode"
method: POST
path: "/projects/{project_id}/ai/conversations/{public_id}/permission-mode"
tags: ["AI Chat"]
---

# POST /projects/{project_id}/ai/conversations/{public_id}/permission-mode

`POST /projects/{project_id}/ai/conversations/{public_id}/permission-mode`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/ai/conversations/{public_id}/permission-mode`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `public_id` string, required

## Request body

- UpdatePermissionModeRequest
  - `permission_mode` string, required: Provider permission mode to persist. During a running turn only `Auto` (`full-access`) can be applied because provider CLI launch flags cannot be safely reduced after the process has started.

## Response `200`

- ConversationResponse
  - `active_turn_id` string, nullable
  - `ai_model` string, required
  - `ai_permission_mode` string, required
  - `ai_provider` string, required
  - `ai_thinking_level` string, nullable
  - `application_id` integer, nullable
  - `context_id` string, required
  - `context_type` string, required
  - `context_usage` ContextWindowUsageResponse, nullable
    - `estimated` boolean, required
    - `limit_tokens` integer, nullable
    - `model` string, nullable
    - `source` string, required
    - `updated_at` string, required
    - `used_tokens` integer, required
  - `created_at` string, required
  - `failure` ChatFailureResponse, nullable
    - `code` string, required
    - `detail` string, required
    - `retryable` boolean, required
    - `title` string, required
  - `focus_project_id` integer, nullable: The project an assistant chat was started about, if any.
  - `kind` string, required: `ai` (a conversation with an AI harness) or `terminal` (an interactive shell in the workspace sandbox). Fixed at creation.
  - `last_activity_at` string, required
  - `project_id` integer, nullable
  - `public_id` string, required
  - `status` string, required
  - `title` string, nullable
  - `turn_started_at` string, nullable
  - `turn_status` string, required: Server-authoritative lifecycle for the current/most recent turn.

## Other responses

- `400`
- `401`
- `403`
- `404`
- `409`

## Changes

- **2026-10-23** `7d41b820a372`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 1 warning
  - removed the optional property `focus_project_id` from the response with the `200` status
- **2026-10-22** `842d42ed4659`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status
- **2026-10-22** `1a12a50b75ee`: 1 warning
  - removed the optional property `focus_project_id` from the response with the `200` status
- **2026-10-21** `79089e9f49ee`: 1 info
  - added the optional property `focus_project_id` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/ai/conversations/:public_id/permission-mode/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
