Документация / Как начать / Работа с MCP / Идентификаторы и страницы результатов / REST: agents / updateAgentConfig Для AI-агентов: markdown этой страницы — /docs/api-op-updateagentconfig.md · индекс документации — /llms.txt
updateAgentConfig Обновлено 4 октября 2026 г.
PATCH /api/v1/tools/agents
Update the tenant AI agent configuration
# Авторизация и праваScopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.
Поле Значение security.0.hubApiKey [] security.1.hubBearer [] securitySchemes.hubApiKey.in "header" securitySchemes.hubApiKey.name "X-Api-Key" securitySchemes.hubApiKey.type "apiKey" securitySchemes.hubBearer.scheme "bearer" securitySchemes.hubBearer.type "http" x-required-scopes ["agents:write"]
# Параметры запросаПоле Значение 0.description "Replay the same tenant, credential, route and request for 24 hours." 0.in "header" 0.name "Idempotency-Key" 0.required false 0.schema 0.schema
# Тело запроса# Ответы# ОшибкиПоле Значение 400.content.application/problem+json.schema ProblemDetails 400.description "Strict request validation failed." 400.x-error-codes ["VALIDATION_ERROR"] 401.content.application/problem+json.schema ProblemDetails 401.description "Missing, invalid, revoked or expired API credential. Surface-session JWTs are not accepted." 401.x-error-codes ["INVALID_API_KEY"] 403.content.application/problem+json.schema ProblemDetails 403.description "Missing effective scope, forbidden publishable key, inaccessible tenant or no active bot." 403.x-error-codes ["INSUFFICIENT_SCOPE","PUBLISHABLE_KEY_NOT_ALLOWED","FORBIDDEN","NO_ACTIVE_BOT"] 409.content.application/problem+json.schema ProblemDetails 409.description "A request with this key is still processing." 409.x-error-codes ["CONFLICT"] 413.content.application/problem+json.schema ProblemDetails 413.description "Per-tool payload size or item-count limit exceeded before validation." 413.x-error-codes ["PAYLOAD_TOO_LARGE","ITEM_COUNT_EXCEEDED"] 422.content.application/problem+json.schema ProblemDetails 422.description "Idempotency-Key reused with different inputs." 422.x-error-codes ["IDEMPOTENCY_KEY_MISMATCH"] 429.content.application/problem+json.schema ProblemDetails 429.description "Per-tool rate limit exceeded or unavailable; fail closed." 429.headers.Retry-After.required false 429.headers.Retry-After.schema 429.headers.Retry-After.schema 429.x-error-codes ["RATE_LIMIT_EXCEEDED","RATE_LIMIT_UNAVAILABLE"] 500.content.application/problem+json.schema ProblemDetails 500.description "Unexpected internal failure." 500.x-error-codes ["INTERNAL_ERROR"]
# Дополнительные условияПоле Значение description "Tenant singleton configuration. This controls persona and prompts; it never authorizes internal Qualifier, Manager or Coach agents to mutate orders or money. Those agents advise and hand off; scoped tenant-agent money commands belong to the separate Hub money operations. No pagination, ETag or If-Match. Nested fields are optional; nullable prompt strings clear values. Empty patches are accepted. Idempotency-Key is optional; an empty header is treated as absent and executes without a receipt. Manager changes invalidate its shared config cache." operationId "updateAgentConfig" summary "Update the tenant AI agent configuration" tags ["agents"] x-idempotency.mismatchStatus 422 x-idempotency.required false x-idempotency.ttlSeconds 86400 x-pagination.kind "none"