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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | ForgeFunctionPatchInput |
application/merge-patch+json | ForgeFunctionPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json ForgeFunction または object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
409 | conflict | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
ForgeConfigKey
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
default | string または null | 必須 | |
description | string または null | 必須 | |
is_required | boolean | 必須 | |
is_secret | boolean | 必須 | A secret key holds a keystore secret's name, never a value. |
key | string | 必須 |
ForgeConfigKeyInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
default | string または null | 任意 | |
description | string または null | 任意 | |
is_required | boolean | 任意 | |
is_secret | boolean | 任意 | A secret key holds a keystore secret's name, never a value. |
key | string | 任意 |
ForgeFunction
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
active_version_number | integer または null | 必須 | The number of the version that runs. |
archived | boolean | 必須 | |
artifacts_enabled | boolean | 必須 | |
config_keys | ForgeConfigKey の配列 | 必須 | The settings a workflow step using the function asks for. |
created_at | string (date-time) または null | 必須 | |
default_mode | string | 必須 | |
description | string または null | 必須 | |
display_name | string | 必須 | |
document_context | string の配列 | 必須 | The optional document blocks the active version asked for (tags, folders, locations, review, collected_files). |
entrypoint | string の配列 | 必須 | Container packaging: the command the shim runs inside the image. |
env_config | object | 必須 | The function's environment variables, as an opaque forge_env_config document (format_version 1). |
forge_function_id | string | 必須 | |
forge_function_version_id | string または null | 必須 | The version that runs; null when none is active. |
handler | string または null | 必須 | Zip packaging: the code's entry point. |
invocations_30_days | integer | 必須 | Runs dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647 |
last_invoked_at | string (date-time) または null | 必須 | |
latest_version_status | string または null | 必須 | The provisioning state of the newest version, so a list shows one that is still deploying. |
max_artifacts | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
memory_mb | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
name | string | 必須 | |
output_schema | object または null | 必須 | The JSON Schema of the function's output (format forge_output_schema); null when it declares none. |
packaging | string | 必須 | |
registry_repository_uri | string または null | 必須 | Container packaging: where the image is pushed; null until the Portal made the repository. |
routes | ForgeRoute の配列 | 必須 | The handles a workflow edge leaves the function's step by. |
runtime | string | 必須 | |
timeout_seconds | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
ForgeFunctionPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
active_version_number | integer または null | 任意 | |
archived | boolean または null | 任意 | |
artifacts_enabled | boolean または null | 任意 | |
config_keys | ForgeConfigKeyInput の配列 または null | 任意 | |
created_at | string (date-time) または null | 任意 | |
default_mode | string または null | 任意 | |
description | string または null | 任意 | |
display_name | string または null | 任意 | |
document_context | string の配列 または null | 任意 | |
entrypoint | string の配列 または null | 任意 | |
env_config | object または null | 任意 | The environment variables, as an opaque forge_env_config document (format_version 1). |
forge_function_id | string または null | 任意 | |
forge_function_version_id | string または null | 任意 | |
handler | string または null | 任意 | |
invocations_30_days | integer または null | 任意 | |
last_invoked_at | string (date-time) または null | 任意 | |
latest_version_status | string または null | 任意 | |
max_artifacts | integer または null | 任意 | |
memory_mb | integer または null | 任意 | |
name | string または null | 任意 | |
output_schema | object または null | 任意 | |
packaging | string または null | 任意 | |
registry_repository_uri | string または null | 任意 | |
routes | ForgeRouteInput の配列 または null | 任意 | |
runtime | string または null | 任意 | |
timeout_seconds | integer または null | 任意 |
ForgeRoute
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 必須 | |
handle | string | 必須 | |
label | string | 必須 |
ForgeRouteInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
description | string または null | 任意 | |
handle | string | 任意 | |
label | string | 任意 |