Update the configuration of an existing function. Only specified fields will be modified.
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Namespace name
Function name
Autoscaling configuration for the function. Keys must be 'min_instances' or 'max_instances', and values must be integers between 0 and 50.
{ "max_instances": 5, "min_instances": 1 }Function code text.
1 - 100000"def main():\n return 'Hello World'"
Dependencies for the function to install.
100000"numpy==1.21.0\npandas==1.3.0"
Description of the function.
255"This is a sample function."
Set to true if the function is disabled.
false
Enable or disable API key authentication. Enable api key is temporarily disabled. As a result, using Functions with authorization is currently not supported.
true
Environment variables for the function. Keys must match a specific regex pattern and be 1-255 characters long, and values must be 0-255 characters long.
{ "ENV_VAR": "value" }The name of the flavor associated with the function.
"128m-128MB"
List of used authentication API keys, matching a specific regex pattern.
["key1", "key2"]The main startup method name.
1 - 100"run"
Function timeout in seconds.
0 <= x <= 18060
OK
List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
GET /v1/tasks/{task_id} - Check individual task status and details
Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.