---
title: "Update Assistant configuration"
method: POST
path: "/api/v2/agent/updateConfig"
tags: ["Agent"]
---

# Update Assistant configuration

`POST /api/v2/agent/updateConfig`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/agent/updateConfig`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Update the supplied organization-wide Assistant settings. Requires organization administration and a session or API token. MCP and OAuth credentials cannot change Assistant configuration or global instructions. Omitted settings retain their saved values.

## Request body

- AgentUpdateConfigRequest
  - `enabled` boolean
  - `slackChannelId` string, nullable
  - `maxConcurrentRuns` integer
  - `globalInstructions` string, nullable
  - `chatRetentionDays` integer
  - `organizationId` string

## Response `200`

Success

- AgentConfigResponse
  - `config` object, required
    - `organizationId` string, required
    - `enabled` boolean, required
    - `slackChannelId` string, nullable, required
    - `maxConcurrentRuns` integer, required
    - `globalInstructions` string, nullable, required
    - `chatRetentionDays` integer, required
    - `savedConfig` object, nullable, required
      - `id` string, uuid, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response

---

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