Skip to main content

Update endpoint

update(args)

Update custom endpoint with TruServeClient.

serve.update(
alias ="my_custom_endpoint",
script_path="endpoint_v2.py",
local_file=False
)

Parameters

ParamTypeDescriptionRequired
aliasstrUnique value to identify endpointTrue
titlestrTitle of endpointFalse
instance_typeInstance TypeType of the InstanceFalse
instance_countintNumber of the InstancesFalse
script_pathstrPython scriptFalse
requirements_pathstrText file with needed requirementsFalse
descriptionstrDescription for endpointFalse
local_fileboolIt means you are uploading Script and Requirements Path locally, or False if you want to get them from TruStorageFalse, default True