Skip to main content

Deploy a Forge bundle.

POST/api/v1/forge-functionsforge:deploy

upload_id is a completed upload session with purpose forge_bundle (a .zip). Creates the function its manifest names, or a new version of the function of that name, and queues the version's provisioning (not waited on). The bundle is checked as the Portal checks it, up to the Portal's bundle size limit. A container-packaged (image) bundle stores the version as uploaded and queues nothing: ask create_forge_function_version_registry_credentials for the push credentials (it makes the registry repository on a cloud backend), push the image, then provision_forge_function_version.

Scopeforge:deploy (sensitive)
AsynchronousNo
MCP toolcreate_forge_function
Portal permissionscreate_forge_functions, upload_forge_function_versions

Parameters​

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

Request body​

Content typeType
application/jsonForgeFunctionCreateInput

Responses​

StatusDescriptionBody
201Success.application/json ForgeFunction or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/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

ForgeFunctionCreateInput​

FieldTypeRequiredDescription
upload_idstringRequiredA completed upload session with purpose forge_bundle.

ForgeRoute​

FieldTypeRequiredDescription
descriptionstring or nullRequired
handlestringRequired
labelstringRequired