Activate a Forge function version.
POST/api/v1/forge-functions/{forge_function_id}/versions/{forge_function_version_id}/activateforge:deploy
Makes the version the one that runs, and copies its manifest onto the function. Only an active version can be activated. Needs Activate Forge Function Versions, or Rollback Forge Function Versions when the version is older than the active one; is refused to external users, and is unavailable while Forge publishing is off.
| Scope | forge:deploy (sensitive) |
| Asynchronous | No |
| MCP tool | activate_forge_function_version |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
forge_function_id | path | string | Required | |
forge_function_version_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional | |
Idempotency-Key | header | string | Optional | max 255 |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json ForgeFunction or object |
400 | invalid_version | 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, idempotency_in_progress | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | idempotency_key_reused, 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 |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ForgeConfigKey
| Field | Type | Required | Description |
|---|---|---|---|
default | string or null | Required | |
description | string or null | Required | |
is_required | boolean | Required | |
is_secret | boolean | Required | A secret key holds a keystore secret's name, never a value. |
key | string | Required |
ForgeFunction
| Field | Type | Required | Description |
|---|---|---|---|
active_version_number | integer or null | Required | The number of the version that runs. |
archived | boolean | Required | |
artifacts_enabled | boolean | Required | |
config_keys | array of ForgeConfigKey | Required | The settings a workflow step using the function asks for. |
created_at | string (date-time) or null | Required | |
default_mode | string | Required | |
description | string or null | Required | |
display_name | string | Required | |
document_context | array of string | Required | The optional document blocks the active version asked for (tags, folders, locations, review, collected_files). |
entrypoint | array of string | Required | Container packaging: the command the shim runs inside the image. |
env_config | object | Required | The function's environment variables, as an opaque forge_env_config document (format_version 1). |
forge_function_id | string | Required | |
forge_function_version_id | string or null | Required | The version that runs; null when none is active. |
handler | string or null | Required | Zip packaging: the code's entry point. |
invocations_30_days | integer | Required | Runs dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647 |
last_invoked_at | string (date-time) or null | Required | |
latest_version_status | string or null | Required | The provisioning state of the newest version, so a list shows one that is still deploying. |
max_artifacts | integer | Required | ≥ -2147483648; ≤ 2147483647 |
memory_mb | integer | Required | ≥ -2147483648; ≤ 2147483647 |
name | string | Required | |
output_schema | object or null | Required | The JSON Schema of the function's output (format forge_output_schema); null when it declares none. |
packaging | string | Required | |
registry_repository_uri | string or null | Required | Container packaging: where the image is pushed; null until the Portal made the repository. |
routes | array of ForgeRoute | Required | The handles a workflow edge leaves the function's step by. |
runtime | string | Required | |
timeout_seconds | integer | Required | ≥ -2147483648; ≤ 2147483647 |
ForgeRoute
| Field | Type | Required | Description |
|---|---|---|---|
description | string or null | Required | |
handle | string | Required | |
label | string | Required |