dots.v2.functions.namespaces.byNamespace_id().triggers.byTrigger_name().put()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.functions.namespaces.byNamespace_id(namespace_id).triggers.byTrigger_name(trigger_name).put(body: Update_trigger, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithTrigger_namePutResponse>Description
Updates the details of the given trigger. To update a trigger, send a PUT request to /v2/functions/namespaces/{namespace_id}/triggers/{trigger_name} with new values for the is_enabled or scheduled_details properties.
Parameters
Path Parameters
namespace_idstring requiredExample:
fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxThe ID of the namespace to be managed.
trigger_namestring requiredExample:
my triggerThe name of the trigger to be managed.
Request Body
isEnabledboolean optionalExample:
trueIndicates weather the trigger is paused or unpaused.
scheduledDetailsobject optionalTrigger details for SCHEDULED type, where body is optional.
Show child properties
cronstring requiredExample:
* * * * *valid cron expression string which is required for SCHEDULED type triggers.
bodyobject or null optionalOptional data to be sent to function while triggering the function.
Show child properties
namestring optionalExample:
Welcome to DO!
Request Sample
Response Example
More Information
See /v2/functions/namespaces/{namespace_id}/triggers/{trigger_name} in the API reference for additional detail on responses, headers, parameters, and more.