Get a function package version
GET
/v1/functions/{function_id}/versions/{version}Authorization
AuthorizationBearer token · headerrequiredPath parameters
function_idstring<uuid>requiredFunction package id
versioninteger<int32>requiredVersion number, counting from 1
Responses
200The version.
assetsany | FunctionAssetsBodyrequiredShow propertiesHide properties
One of:
any
anyFunctionAssetsBody
bytesinteger<int64>requiredfilesFunctionAssetFileBody[]requiredEach file the archive holds, in path order.
Show propertiesHide properties
Array of
FunctionAssetFileBodypathstringrequiredThe path under `assets/`, `/`-separated.
sha256stringrequiredHex SHA-256 of the file's bytes.
sizeinteger<int64>requiredmin 0
sha256stringrequiredcreated_atstring<date-time>requiredfunction_idstring<uuid>requiredidstring<uuid>requiredmanifestFunctionManifestBodyrequiredWhat a version serves: the name and description its `subako-package.json`
gives, and each tool its module lists.
Show propertiesHide properties
descriptionstringrequiredfunctionsManifestFunctionBody[]requiredShow propertiesHide properties
Array of
ManifestFunctionBodydescriptionstringrequiredinput_schemaanyrequiredJSON Schema for the tool's arguments.
namestringrequiredoutput_schemaanyrequiredJSON Schema for the tool's output; `{}` when the tool names none.
namestringrequiredmodule_bytesinteger<int64>requiredmodule_sha256stringrequiredversioninteger<int32>required400Malformed path parameter.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired403Caller lacks function.read.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired404No such package or version, or the caller cannot see it.
errorErrorDetailrequiredWhat went wrong: a `code` to branch on and a `message` to show. The
message is written for a person and may change; the code will not.
Show propertiesHide properties
codeErrorCoderequiredThe machine-readable half of an error response, and the field a client
branches on. Closed: every error carries exactly one of these.
Allowed:
unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternalmessagestringrequired