Skip to main content
PUT
connector.functions.set(side, spec): replaces the code, runtime, and params, and answers once the new version is published

Authorizations

Authorization
string
header
required

An API key, or a session token on its own session

Path Parameters

idOrName
string
required

The connector's ID, or for connectors.get its name

side
enum<string>
required

The connector's side

Available options:
inbound,
outbound

Body

application/json
runtime
enum<string>
required

AWS Lambda's runtime identifiers.

Available options:
nodejs24.x,
python3.14
code
string

At most 256 KiB; omitted: the preset's code for the side and runtime.

preset
string

A preset's name; required when code is omitted.

params
object

Omitted: the preset's defaults, or none.

Response

The function, its new version published

runtime
enum<string>
required

AWS Lambda's runtime identifiers.

Available options:
nodejs24.x,
python3.14
preset
string | null
required

The preset the code was taken from when it was set.

presetCode
boolean
required

The code is still the preset's, byte for byte, so the console offers its form.

version
integer
required

paddock's version of the side's function, raised by every set, never reused.

Required range: x >= 1
codeSha256
string
required

SHA-256 of the code, hex.

updatedAt
string<date-time>
required

RFC 3339 in UTC with milliseconds.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
side
enum<string>
required
Available options:
inbound,
outbound
code
string
required

The one source file, UTF-8.

params
object
required

Passed to every invocation; not secret.