Create a Function
Creates a new function with provided configurations and uploads the code file.
POST
/faas/functions/Query parameters
project_idQueryintegerrequiredProject ID Find your project id here
locationQuerystringrequiredLocation (Delhi and Chennai)
Request body
multipart/form-data
Unique name for the function
example
e2e-function-55619Runtime environment
example
python-3.11-fastapiMemory allocated to the function (in MB)
example
128Timeout for the function (in seconds)
example
15JSON string of environment variables
example
{"env_name":"env_value"}Zipped function source code (.zip file)
Responses
200Function created successfully
example
200example
Success