メインコンテンツまでスキップ

Update a Forge function (JSON Merge Patch).

PATCH/api/v1/forge-functions/{forge_function_id}forge:deploy
注記

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

Changes the display name, description, timeout, memory and environment (env_config; null empties it). A timeout, memory or environment change re-deploys the active version after the change is saved, since the function reads them when deployed. Limits are clamped to the server's maximums. Needs Edit Forge Functions, and Provision Forge Versions and Deploy Forge Function Versions when the change re-deploys an active version; is refused to external users, and is unavailable while Forge publishing is off.

スコープforge:deploy (機密性の高いスコープ)
非同期いいえ
MCP ツールupdate_forge_function
Portal の権限edit_forge_functions

パラメーター​

名前場所型必須説明
forge_function_idpathstring必須
Docwize-Versionheaderstring (date)任意
If-Matchheaderstring任意

リクエスト本文​

Content-Type型
application/jsonForgeFunctionPatchInput
application/merge-patch+jsonForgeFunctionPatchInput

応答​

ステータス説明本文
200Success.application/json ForgeFunction または object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflictapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

ForgeConfigKey​

フィールド型必須説明
defaultstring または null必須
descriptionstring または null必須
is_requiredboolean必須
is_secretboolean必須A secret key holds a keystore secret's name, never a value.
keystring必須

ForgeConfigKeyInput​

フィールド型必須説明
defaultstring または null任意
descriptionstring または null任意
is_requiredboolean任意
is_secretboolean任意A secret key holds a keystore secret's name, never a value.
keystring任意

ForgeFunction​

フィールド型必須説明
active_version_numberinteger または null必須The number of the version that runs.
archivedboolean必須
artifacts_enabledboolean必須
config_keysForgeConfigKey の配列必須The settings a workflow step using the function asks for.
created_atstring (date-time) または null必須
default_modestring必須
descriptionstring または null必須
display_namestring必須
document_contextstring の配列必須The optional document blocks the active version asked for (tags, folders, locations, review, collected_files).
entrypointstring の配列必須Container packaging: the command the shim runs inside the image.
env_configobject必須The function's environment variables, as an opaque forge_env_config document (format_version 1).
forge_function_idstring必須
forge_function_version_idstring または null必須The version that runs; null when none is active.
handlerstring または null必須Zip packaging: the code's entry point.
invocations_30_daysinteger必須Runs dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647
last_invoked_atstring (date-time) または null必須
latest_version_statusstring または null必須The provisioning state of the newest version, so a list shows one that is still deploying.
max_artifactsinteger必須≥ -2147483648; ≤ 2147483647
memory_mbinteger必須≥ -2147483648; ≤ 2147483647
namestring必須
output_schemaobject または null必須The JSON Schema of the function's output (format forge_output_schema); null when it declares none.
packagingstring必須
registry_repository_uristring または null必須Container packaging: where the image is pushed; null until the Portal made the repository.
routesForgeRoute の配列必須The handles a workflow edge leaves the function's step by.
runtimestring必須
timeout_secondsinteger必須≥ -2147483648; ≤ 2147483647

ForgeFunctionPatchInput​

フィールド型必須説明
active_version_numberinteger または null任意
archivedboolean または null任意
artifacts_enabledboolean または null任意
config_keysForgeConfigKeyInput の配列 または null任意
created_atstring (date-time) または null任意
default_modestring または null任意
descriptionstring または null任意
display_namestring または null任意
document_contextstring の配列 または null任意
entrypointstring の配列 または null任意
env_configobject または null任意The environment variables, as an opaque forge_env_config document (format_version 1).
forge_function_idstring または null任意
forge_function_version_idstring または null任意
handlerstring または null任意
invocations_30_daysinteger または null任意
last_invoked_atstring (date-time) または null任意
latest_version_statusstring または null任意
max_artifactsinteger または null任意
memory_mbinteger または null任意
namestring または null任意
output_schemaobject または null任意
packagingstring または null任意
registry_repository_uristring または null任意
routesForgeRouteInput の配列 または null任意
runtimestring または null任意
timeout_secondsinteger または null任意

ForgeRoute​

フィールド型必須説明
descriptionstring または null必須
handlestring必須
labelstring必須

ForgeRouteInput​

フィールド型必須説明
descriptionstring または null任意
handlestring任意
labelstring任意