PUT
/
sources
/
{id}
Update a source
curl --request PUT \
  --url https://api.pipedream.com/v1/sources/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "component_id": "<string>",
  "component_code": "<string>",
  "component_url": "<string>",
  "name": "<string>",
  "active": true
}'

Endpoint

PUT /sources/{id}

Parameters

component_id
string

The ID of a component previously created in your account. See the component endpoints for information on how to retrieve this ID.


component_code
string

The full code for a Pipedream component.


component_url
string

A reference to the URL where the component is hosted.

For example, to create an RSS component, pass https://github.com/PipedreamHQ/pipedream/blob/master/components/rss/sources/new-item-in-feed/new-item-in-feed.ts.


One of component_id, component_code, or component_url is required. If all are present, component_id is preferred and component_url will be used only as metadata to identify the location of the code.


name
string

The name of the source.

If absent, this defaults to using the name slug of the component used to create the source.


active
boolean

The active state of a component. To disable a component, set to false. To enable a component, set to true.

Default: true.