Документация / Как начать / Работа с MCP / Идентификаторы и страницы результатов / REST: site / requestSiteUpload Для AI-агентов: markdown этой страницы — /docs/api-op-requestsiteupload.md · индекс документации — /llms.txt
requestSiteUpload Обновлено 4 октября 2026 г.
POST /api/v1/tools/site/request-upload
Request staged bundle upload URLs
# Авторизация и права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 ["site:write"]
# Параметры запросаПоле Значение 0.description "Tenant, credential and handler-bound byte-shape replay key" 0.in "header" 0.name "Idempotency-Key" 0.required true 0.schema 0.schema
# Тело запроса# Ответы# ОшибкиПоле Значение 400.content.application/problem+json.schema ProblemDetails 400.description "Invalid strict upload declaration or missing replay key" 400.x-error-codes ["VALIDATION_ERROR","IDEMPOTENCY_KEY_REQUIRED"] 401.content.application/problem+json.schema ProblemDetails 401.description "Missing, invalid, revoked or conflicting credential; surface JWT is refused" 401.x-error-codes ["INVALID_API_KEY"] 403.content.application/problem+json.schema ProblemDetails 403.description "Missing scope, prohibited publishable credential or absent active bot" 403.x-error-codes ["INSUFFICIENT_SCOPE","PUBLISHABLE_KEY_NOT_ALLOWED","NO_ACTIVE_BOT"] 404.content.application/problem+json.schema ProblemDetails 404.description "Host is not a live tenant custom domain" 404.x-error-codes ["NOT_FOUND"] 409.content.application/problem+json.schema ProblemDetails 409.description "Typed domain conflict or request in flight" 409.x-error-codes ["CONFLICT"] 413.content.application/problem+json.schema ProblemDetails 413.description "Resource policy size or item-count limit exceeded" 413.x-error-codes ["PAYLOAD_TOO_LARGE","ITEM_COUNT_EXCEEDED"] 422.content.application/problem+json.schema ProblemDetails 422.description "Replay mismatch or path outside the permitted publication prefix" 422.x-error-codes ["IDEMPOTENCY_KEY_MISMATCH","SITE_PATH_OUTSIDE_PUBLISHABLE_PREFIX"] 429.content.application/problem+json.schema ProblemDetails 429.description "Resource rate budget exceeded or unavailable" 429.headers.Retry-After.description "Retry delay in seconds, when supplied by the limiter" 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 "Owner-only site:write. Bare host and nonempty declared files; each includes path, integer nonnegative sizeBytes, contentType and optional references. The facade checks tenant host, safe paths and commercial-plan cap before minting. Signed PUTs target staging and bind Content-Length. Expire in 300 seconds. No secret approval gate." operationId "requestSiteUpload" summary "Request staged bundle upload URLs" tags ["site"] x-idempotency.conflictStatus 422 x-idempotency.implementation "global-cache" x-idempotency.replayStatus 201 x-idempotency.required true x-idempotency.scope ["client","credential","controller-handler","key"] x-idempotency.ttlSeconds 86400 x-pagination.queryParameters [] x-pagination.supported false x-scope-semantics "ALL"