Skip to main content

/functions/rest/v1/functions/{id} REST Method

Updates a Function.

Updated on
Oct 10, 2024

/functions/rest/v1/functions/{id} REST Method

Path Parameters

id
string
REQUIRED
The ID of the function.

Body Parameters

description
string
A description of your function. Accepts markdown.
kind
string
The runtime for your function. ENUM: "nodejs-qn:20"
code
string
The code for your function encoded in base64. This field accepts base64 encoded string containing your function code or a base64 encoded zip archive of your function and its dependencies.
binary
boolean
Indicates whether the code field contains a zip archive.
limits
object
An object containing the limits for your function.
timeout
integer
The maximum time in milliseconds that your function can run. Must be between 5000 and 60000

Returns

id
string
The ID of the function.
name
string
The name of the function.
description
string
The description of your function.
created_at
string
The timestamp when the function was created.
updated_at
string
The timestamp when the function was updated.
qn_account_id
string
The ID of the QuickNode account that created the function.
exec
object
The code attributes of the function.
kind
string
The runtime for your function. ENUM: "nodejs-qn:20"
code
string
The code for your function encoded in base64.
binary
boolean
Indicates whether the code field contains a zip archive.
limits
object
The limits for the function.
timeout
integer
The maximum time in milliseconds that your function can run.
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free