Skip to main content
PUT
/
v1
/
connect
/
{project_id}
/
deployed-triggers
/
{trigger_id}
cURL
curl --request PUT \
  --url https://api.pipedream.com/v1/connect/{project_id}/deployed-triggers/{trigger_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-pd-environment: <x-pd-environment>' \
  --data '
{
  "active": true,
  "configured_props": {},
  "name": "<string>",
  "emit_on_deploy": true
}
'
import { PipedreamClient } from "@pipedream/sdk";

const client = new PipedreamClient({
clientId: "YOUR_CLIENT_ID",
clientSecret: "YOUR_CLIENT_SECRET",
projectEnvironment: "YOUR_PROJECT_ENVIRONMENT",
projectId: "YOUR_PROJECT_ID"
});
await client.deployedTriggers.update("trigger_id", {
externalUserId: "external_user_id"
});
from pipedream import Pipedream

client = Pipedream(
project_id="YOUR_PROJECT_ID",
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
)
client.deployed_triggers.update(
trigger_id="trigger_id",
external_user_id="external_user_id",
)
package com.example.usage;

import com.pipedream.api.BaseClient;
import com.pipedream.api.resources.deployedtriggers.requests.UpdateTriggerOpts;

public class Example {
public static void main(String[] args) {
BaseClient client = BaseClient.withCredentials("<clientId>", "<clientSecret>")
.projectId("YOUR_PROJECT_ID")
.build()
;

client.deployedTriggers().update(
"trigger_id",
UpdateTriggerOpts
.builder()
.externalUserId("external_user_id")
.build()
);
}
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.pipedream.com/v1/connect/{project_id}/deployed-triggers/{trigger_id}"

payload := strings.NewReader("{\n \"active\": true,\n \"configured_props\": {},\n \"name\": \"<string>\",\n \"emit_on_deploy\": true\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("x-pd-environment", "<x-pd-environment>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
{
  "data": {
    "id": "<string>",
    "owner_id": "<string>",
    "component_id": "<string>",
    "configurable_props": [
      {
        "name": "<string>",
        "type": "alert",
        "content": "<string>",
        "label": "<string>",
        "description": "<string>",
        "optional": true,
        "disabled": true,
        "readOnly": true,
        "hidden": true,
        "remoteOptions": true,
        "useQuery": true,
        "reloadProps": true,
        "withLabel": true
      }
    ],
    "configured_props": {},
    "active": true,
    "created_at": 123,
    "updated_at": 123,
    "name": "<string>",
    "name_slug": "<string>",
    "type": "DeployedComponent",
    "component_key": "<string>",
    "callback_observations": "<unknown>",
    "emit_on_deploy": true,
    "webhook_signing_key": "<string>"
  }
}
{
"error": "Throttled"
}
Configured props you define when updating a deployed trigger will overwrite previously configured props.

Authorizations

Authorization
string
header
required

A short-lived Connect token for client-side requests on behalf of an end user. Generate one via the Create Connect token endpoint.

Headers

x-pd-environment
enum<string>
required

The environment in which the server client is running

Available options:
development,
production

Path Parameters

project_id
string
required

The project ID, which starts with proj_.

Pattern: ^proj_[a-zA-Z0-9]+$
trigger_id
string
required

Query Parameters

external_user_id
string
required

The external user ID who owns the trigger

Body

application/json

Request options for updating a trigger

active
boolean

Whether the trigger should be active

configured_props
object

The configured properties of the component

name
string

The name of the trigger

emit_on_deploy
boolean

Whether the trigger should emit events during deployment

Response

deployed trigger updated

Response received when retrieving a deployed trigger

data
object
required

A component/interface that emits events