Документация / Как начать / Работа с MCP / Идентификаторы и страницы результатов / REST: legal / updateLegalProfile Для AI-агентов: markdown этой страницы — /docs/api-op-updatelegalprofile.md · индекс документации — /llms.txt
updateLegalProfile Обновлено 4 октября 2026 г.
PATCH /api/v1/tools/legal
Update tenant legal settings
# Авторизация и права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 ["legal:write"]
# Параметры запросаПоле Значение 0.in "header" 0.name "Idempotency-Key" 0.required false 0.schema 0.schema
# Тело запроса# Ответы# ОшибкиПоле Значение 400.content.application/problem+json.schema ProblemDetails 400.description "VALIDATION_ERROR: invalid strict partial patch" 401.content.application/problem+json.schema ProblemDetails 401.description "INVALID_API_KEY: missing, invalid or conflicting key headers; surface JWT is not supported" 403.content.application/problem+json.schema ProblemDetails 403.description "INSUFFICIENT_SCOPE, PUBLISHABLE_KEY_NOT_ALLOWED or NO_ACTIVE_BOT" 409.content.application/problem+json.schema ProblemDetails 409.description "CONFLICT: idempotent request is processing" 413.content.application/problem+json.schema ProblemDetails 413.description "PAYLOAD_TOO_LARGE or ITEM_COUNT_EXCEEDED resource policy refusal" 422.content.application/problem+json.schema ProblemDetails 422.description "IDEMPOTENCY_KEY_MISMATCH: caller key reused with different request inputs" 429.content.application/problem+json.schema ProblemDetails 429.description "RATE_LIMIT_EXCEEDED or RATE_LIMIT_UNAVAILABLE" 429.headers.Retry-After.description "Retry delay in seconds when supplied by resource policy" 429.headers.Retry-After.schema 429.headers.Retry-After.schema
# Дополнительные условияПоле Значение description "Owner-authorized strict partial patch. Omitted fields remain unchanged; null clears a field. Idempotency-Key is optional for PATCH. When supplied, the tenant/actor/handler cache replays for 86400 seconds; changed body returns 422 IDEMPOTENCY_KEY_MISMATCH, an in-flight key returns 409 CONFLICT. Bearer transport accepts tgf_* credentials, not a surface JWT." operationId "updateLegalProfile" summary "Update tenant legal settings" tags ["legal"]