Update Function
Updates the specified serverless function with new memory, timeout, environment variables, and code file.
PUT
/faas/function/{function_id}/Path parameters
function_idPathintegerrequiredFunction ID
Query parameters
project_idQueryintegerrequiredProject ID Find your project id here
locationQuerystringrequiredLocation (Delhi and Chennai)
Request body
multipart/form-data
Memory 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 update initiated successfully.
example
200example
Function sent to buildexample
Success