PUT /v2/functions/namespaces/{namespace_id}/triggers/{trigger_name}

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.

Servers

Path parameters

Name Type Required Description
trigger_name String Yes

The name of the trigger to be managed.

namespace_id String Yes

The ID of the namespace to be managed.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
scheduled_details Object No

Trigger details for SCHEDULED type, where body is optional.

scheduled_details.body Object No

Optional data to be sent to function while triggering the function.

scheduled_details.body.name String No
scheduled_details.cron String Yes

valid cron expression string which is required for SCHEDULED type triggers.

is_enabled Boolean No

Indicates weather the trigger is paused or unpaused.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.