Skip to main content

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.

Scopeforge:deploy (sensitive)
AsynchronousNo
MCP toolactivate_forge_function_version

Parameters​

NameInTypeRequiredDescription
forge_function_idpathstringRequired
forge_function_version_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Responses​

StatusDescriptionBody
200Success.application/json ForgeFunction or object
400invalid_versionapplication/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
409conflict, idempotency_in_progressapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

ForgeConfigKey​

FieldTypeRequiredDescription
defaultstring or nullRequired
descriptionstring or nullRequired
is_requiredbooleanRequired
is_secretbooleanRequiredA secret key holds a keystore secret's name, never a value.
keystringRequired

ForgeFunction​

FieldTypeRequiredDescription
active_version_numberinteger or nullRequiredThe number of the version that runs.
archivedbooleanRequired
artifacts_enabledbooleanRequired
config_keysarray of ForgeConfigKeyRequiredThe settings a workflow step using the function asks for.
created_atstring (date-time) or nullRequired
default_modestringRequired
descriptionstring or nullRequired
display_namestringRequired
document_contextarray of stringRequiredThe optional document blocks the active version asked for (tags, folders, locations, review, collected_files).
entrypointarray of stringRequiredContainer packaging: the command the shim runs inside the image.
env_configobjectRequiredThe function's environment variables, as an opaque forge_env_config document (format_version 1).
forge_function_idstringRequired
forge_function_version_idstring or nullRequiredThe version that runs; null when none is active.
handlerstring or nullRequiredZip packaging: the code's entry point.
invocations_30_daysintegerRequiredRuns dispatched in the last 30 days. ≥ -2147483648; ≤ 2147483647
last_invoked_atstring (date-time) or nullRequired
latest_version_statusstring or nullRequiredThe provisioning state of the newest version, so a list shows one that is still deploying.
max_artifactsintegerRequired≥ -2147483648; ≤ 2147483647
memory_mbintegerRequired≥ -2147483648; ≤ 2147483647
namestringRequired
output_schemaobject or nullRequiredThe JSON Schema of the function's output (format forge_output_schema); null when it declares none.
packagingstringRequired
registry_repository_uristring or nullRequiredContainer packaging: where the image is pushed; null until the Portal made the repository.
routesarray of ForgeRouteRequiredThe handles a workflow edge leaves the function's step by.
runtimestringRequired
timeout_secondsintegerRequired≥ -2147483648; ≤ 2147483647

ForgeRoute​

FieldTypeRequiredDescription
descriptionstring or nullRequired
handlestringRequired
labelstringRequired