---
search:
  tags:
    - agents
    - POST
seo:
  description: >-
    Saves Claude Managed settings. Prefer providerApiKeyId from… Reference for
    the POST /agents/{id}/claude endpoint in the Leadtime Public API API.
sidebar:
  badge: POST
  label: Save Claude Managed Agent settings for an agent
title: Save Claude Managed Agent settings for an agent
type: openapi-operation
---
Saves Claude Managed settings. Prefer providerApiKeyId from /agents/provider-api-keys when a saved Anthropic key exists. Put Leadtime-managed model, editor-field instructions, and custom MCP servers under config.managedAgent. Instructions are a standard Leadtime editor field: send HTML, Markdown, or ProseMirror IDoc JSON, and Leadtime converts it to internal IDoc before syncing HTML to Claude. Put GitHub repository defaults under config.githubRepositoryDefaults. Use config.toolMode=basic by default when the agent only needs task context, comments, and status updates while doing external work or analysis. Use config.toolMode=full only when the agent is meant to perform broad Leadtime workspace actions such as creating or editing projects, tasks, organizations, contacts, forms, planning data, settings, or other company-management records. Re-read this endpoint after saving to verify the selected model, tool mode, MCP servers, and repositories.

<Operation source="api-reference" id="agentscontroller-saveclaude" />
