UpdateUserDefinedFunction
Update and create a new version of a user defined function.
api
/v1
/user-defined-functions
Request Body
application/json
RequiredThe request for a call to UserDefinedFunctionService_UpdateUserDefinedFunction
to update a user defined function. Updating a user
defined function creates a new version of the user defined function, leaving the previous untouched. If no update is deemed necessary, then the
the current version is returned. To archive user defined function, specify archived_date
in the update mask
as well as a non-null
value for archived_date
in the user_defined_function
object. To unarchive a user defined function, specify archived_date
in the
update mask
and a null
value for archived_date
in the user_defined_function
object.
userDefinedFunction
Requiredobject
updateMask
Requiredstring
The list of fields to be updated. The fields available to be updated are archived_date
, description
, expression
, and function_inputs
.
-- function_inputs
inputs can't be updated if the function has any dependents (functions or calculated channels with a dependency on this function).
-- expression
can't be updated if the function has dependents and the expression changes the output type.
A successful response.