You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use `$.flow.delay` to [delay a step in a workflow](/workflows/flow-control/#delay).
9
-
10
-
These docs show you how to write Node.js code to handle delays. If you don't need to write code, see [our built-in delay actions](/workflows/flow-control/#delay-actions).
11
-
8
+
Use `$.flow.delay` to [delay a step in a workflow](/workflows/control-flow/delay).
12
9
10
+
These docs show you how to write Node.js code to handle delays. If you don't need to write code, see [our built-in delay actions](/workflows/control-flow/delay#delay-actions).
**Pipedream pauses your workflow at the _end_ of the step where you call `$.flow.delay`**. This lets you [send the `cancel_url` and `resume_url` to third-party systems](#cancel-url-and-resume-url).
97
+
**Pipedream pauses your workflow at the _end_ of the step where you call `$.flow.delay`**. This lets you [send the `cancel_url` and `resume_url` to third-party systems](#cancel_url-and-resume_url).
When you [connect an account to a step](/connected-accounts/#from-a-code-step), Pipedream exposes the auth info in the variable [`this.appName.$auth`](/code/nodejs/auth/#accessing-connected-account-data-with-this-appname-auth).
193
+
When you [connect an account to a step](/connected-accounts/#from-a-code-step), Pipedream exposes the auth info in the variable [`this.appName.$auth`](/code/nodejs/auth/#accessing-connected-account-data-with-thisappnameauth).
194
194
195
195
## Logs
196
196
@@ -344,13 +344,13 @@ Within a step, the [normal rules of JavaScript variable scope](https://developer
344
344
There are two ways to make HTTP requests in code steps:
345
345
346
346
- Use any HTTP client that works with Node.js. [See this example guide for how to use `axios` to make HTTP requests](/code/nodejs/http-requests/).
347
-
-[Use `$.send.http()`](/destinations/http/#using-send-http-in-workflows), a Pipedream-provided method for making asynchronous HTTP requests.
347
+
-[Use `$.send.http()`](/destinations/http/#using-sendhttp-in-workflows), a Pipedream-provided method for making asynchronous HTTP requests.
348
348
349
-
In general, if you just need to make an HTTP request but don't care about the response, [use `$.send.http()`](/destinations/http/#using-send-http-in-workflows). If you need to operate on the data in the HTTP response in the rest of your workflow, [use `axios`](/code/nodejs/http-requests/).
349
+
In general, if you just need to make an HTTP request but don't care about the response, [use `$.send.http()`](/destinations/http/#using-sendhttp-in-workflows). If you need to operate on the data in the HTTP response in the rest of your workflow, [use `axios`](/code/nodejs/http-requests/).
350
350
351
351
## Returning HTTP responses
352
352
353
-
You can return HTTP responses from [HTTP-triggered workflows](/workflows/steps/triggers/#http) using the [`$.respond()` function](/workflows/steps/triggers/#http-responses).
353
+
You can return HTTP responses from [HTTP-triggered workflows](/workflows/triggers/#http) using the [`$.respond()` function](/workflows/triggers/#http-responses).
Copy file name to clipboardExpand all lines: docs-v2/pages/code/nodejs/rerun.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ If you resume a workflow, any data sent in the HTTP request is passed to the wor
63
63
/>
64
64
<br />
65
65
66
-
Requests to the `resume_url` have [the same limits as any HTTP request to Pipedream](/limits/#http-request-body-size), but you can send larger payloads using our [large payload](/workflows/steps/triggers/#sending-large-payloads) or [large file](/workflows/steps/triggers/#large-file-support) interfaces.
66
+
Requests to the `resume_url` have [the same limits as any HTTP request to Pipedream](/limits/#http-request-body-size), but you can send larger payloads using our [large payload](/workflows/triggers/#sending-large-payloads) or [large file](/workflows/triggers/#large-file-support) interfaces.
Copy file name to clipboardExpand all lines: docs-v2/pages/code/nodejs/sharing-code.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ import VideoPlayer from '@/components/VideoPlayer'
7
7
8
8
Pipedream provides two ways to share code across workflows:
9
9
10
-
-**Publish an action from a Node.js code step**. [Publish any Node.js code step as a reusable action](/code/nodejs/sharing-code/#publish-an-action-from-a-node-js-code-step) from the Pipedream dashboard.
10
+
-**Publish an action from a Node.js code step**. [Publish any Node.js code step as a reusable action](/code/nodejs/sharing-code/#publish-an-action-from-a-nodejs-code-step) from the Pipedream dashboard.
11
11
12
12
-**Create an action from code**. Develop your action code on your local filesystem and [publish to your Pipedream account using the Pipedream CLI](/components/quickstart/nodejs/actions/).
13
13
@@ -137,7 +137,7 @@ No, a new version of an action doesn't automatically update all instances of the
137
137
This gives you the control to gradually update. Learn how to [update steps to the newest action versions here](https://pipedream.com/docs/workflows/steps/actions/#updating-actions-to-the-latest-version).
138
138
</Callout>
139
139
140
-
After publishing a new version, all other steps using this same action will have the option to [update to the latest version](/workflows/steps/actions/#updating-actions-to-the-latest-version).
140
+
After publishing a new version, all other steps using this same action will have the option to [update to the latest version](/workflows/actions/#updating-actions-to-the-latest-version).
141
141
142
142
## Differences between publishing actions from workflow Node.js code steps and directly from code
Copy file name to clipboardExpand all lines: docs-v2/pages/code/python/delay.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@ import Callout from '@/components/Callout'
2
2
3
3
# Delaying a workflow
4
4
5
-
Use `pd.flow.delay` to [delay a step in a workflow](/workflows/flow-control/#delay).
5
+
Use `pd.flow.delay` to [delay a step in a workflow](/workflows/control-flow/delay).
6
6
7
-
These docs show you how to write Python code to handle delays. If you don't need to write code, see [our built-in delay actions](/workflows/flow-control/#delay-actions).
7
+
These docs show you how to write Python code to handle delays. If you don't need to write code, see [our built-in delay actions](/workflows/control-flow/delay#delay-actions).
8
8
9
9
## Using `pd.flow.delay`
10
10
@@ -91,7 +91,7 @@ In `pd.send.email`, the `html` argument defaults to `""`, so it overrides the em
91
91
92
92
## When delays happen
93
93
94
-
**Pipedream pauses your workflow at the _end_ of the step where you call `pd.flow.delay`**. This lets you [send the `cancel_url` and `resume_url` to third-party systems](#cancel-url-and-resume-url).
94
+
**Pipedream pauses your workflow at the _end_ of the step where you call `pd.flow.delay`**. This lets you [send the `cancel_url` and `resume_url` to third-party systems](cancel_url-and-resume_url).
95
95
96
96
```python
97
97
defhandler(pd: 'pipedream'):
@@ -108,7 +108,7 @@ You cannot run `pd.respond` after running `pd.flow.delay`. Pipedream ends the or
108
108
109
109
> $.respond() not called for this invocation
110
110
111
-
If you need to set a delay on an HTTP request triggered workflow, consider using [`time.sleep`](#time-sleep) instead.
111
+
If you need to set a delay on an HTTP request triggered workflow, consider using [`time.sleep`](#timesleep) instead.
Copy file name to clipboardExpand all lines: docs-v2/pages/code/python/index.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ See the [Making HTTP Requests with Python](/code/python/http-requests/) docs for
104
104
105
105
## Returning HTTP responses
106
106
107
-
You can return HTTP responses from [HTTP-triggered workflows](/workflows/steps/triggers/#http) using the `pd.respond()` method:
107
+
You can return HTTP responses from [HTTP-triggered workflows](/workflows/triggers/#http) using the `pd.respond()` method:
108
108
109
109
```python
110
110
defhandler(pd: "pipedream"):
@@ -123,7 +123,7 @@ Unlike the [Node.js equivalent](https://pipedream.com/docs/workflows/steps/trigg
123
123
</Callout>
124
124
125
125
<Callouttype="info">
126
-
_Don't forget_ to [configure your workflow's HTTP trigger to allow a custom response](/workflows/steps/triggers/#http-responses). Otherwise your workflow will return the default response.
126
+
_Don't forget_ to [configure your workflow's HTTP trigger to allow a custom response](/workflows/triggers/#http-responses). Otherwise your workflow will return the default response.
Copy file name to clipboardExpand all lines: docs-v2/pages/components/api.mdx
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Components are Node.js modules that run on Pipedream's serverless infrastructure
20
20
21
21
- Trigger Node.js code on HTTP requests, timers, cron schedules, or manually
22
22
- Emit data on each event to inspect it. Trigger Pipedream hosted workflows or access it outside of Pipedream via API
23
-
- Accept user input on deploy via [CLI](/cli/reference/#pd-deploy), [API](/api/rest/#overview), or [UI](https://pipedream.com/sources)
23
+
- Accept user input on deploy via [CLI](/cli/reference/#pd-deploy), [API](/rest-api/#overview), or [UI](https://pipedream.com/sources)
24
24
- Connect to [{process.env.PUBLIC_APPS}+ apps](https://pipedream.com/apps) using Pipedream managed auth
25
25
- Use most npm packages with no `npm install` or `package.json` required
26
26
- Store and retrieve state using the [built-in key-value store](#db)
@@ -878,7 +878,7 @@ When your workflow runs, you'll see the named exports appear below your step, wi
878
878
879
879
##### Returning HTTP responses with `$.respond`
880
880
881
-
`$.respond` lets you issue HTTP responses from your workflow. [See the full `$.respond` docs for more information](/workflows/steps/triggers/#customizing-the-http-response).
881
+
`$.respond` lets you issue HTTP responses from your workflow. [See the full `$.respond` docs for more information](/workflows/triggers/#customizing-the-http-response).
882
882
883
883
```javascript
884
884
asyncrun({ $ }) {
@@ -924,35 +924,35 @@ $.export(
924
924
925
925
**`$.send.http`**
926
926
927
-
[See the HTTP destination docs](/destinations/http/#using-send-http-in-component-actions).
927
+
[See the HTTP destination docs](/destinations/http/#using-sendhttp-in-component-actions).
928
928
929
929
**`$.send.email`**
930
930
931
-
[See the Email destination docs](/destinations/email/#using-send-email-in-component-actions).
931
+
[See the Email destination docs](/destinations/email/#using-sendemail-in-component-actions).
932
932
933
933
**`$.send.s3`**
934
934
935
-
[See the S3 destination docs](/destinations/s3/#using-send-s3-in-component-actions).
935
+
[See the S3 destination docs](/destinations/s3/#using-sends3-in-component-actions).
936
936
937
937
**`$.send.emit`**
938
938
939
-
[See the Emit destination docs](/destinations/emit/#using-send-emit-in-component-actions).
939
+
[See the Emit destination docs](/destinations/emit/#using-sendemit-in-component-actions).
940
940
941
941
**`$.send.sse`**
942
942
943
-
[See the SSE destination docs](/destinations/sse/#using-send-sse-in-component-actions).
943
+
[See the SSE destination docs](/destinations/sse/#using-sendsse-in-component-actions).
944
944
945
945
##### `$.context`
946
946
947
-
`$.context` exposes [the same properties as `steps.trigger.context`](/workflows/events/#steps-trigger-context), and more. Action authors can use it to get context about the calling workflow and the execution.
947
+
`$.context` exposes [the same properties as `steps.trigger.context`](/workflows/events/#stepstriggercontext), and more. Action authors can use it to get context about the calling workflow and the execution.
948
948
949
-
All properties from [`steps.trigger.context`](/workflows/events/#steps-trigger-context) are exposed, as well as:
949
+
All properties from [`steps.trigger.context`](/workflows/events/#stepstriggercontext) are exposed, as well as:
| `deadline` | An epoch millisecond timestamp marking the point when the workflow is configured to [timeout](/limits/#time-per-execution). |
954
954
| `JIT` | Stands for "just in time" (environment). `true` if the user is testing the step, `false` if the step is running in production. |
955
-
| `run` | An object containing metadata about the current run number. See [the docs on `$.flow.rerun`](/workflows/events/#steps-trigger-context) for more detail. |
955
+
| `run` | An object containing metadata about the current run number. See [the docs on `$.flow.rerun`](/workflows/events/#stepstriggercontext) for more detail. |
956
956
957
957
### Environment variables
958
958
@@ -1096,7 +1096,7 @@ You can delete a component via the UI at [https://pipedream.com/sources](https:/
1096
1096
1097
1097
#### API
1098
1098
1099
-
See the [REST API docs](/api/rest/).
1099
+
See the [REST API docs](/rest-api/).
1100
1100
1101
1101
### Managing Actions
1102
1102
@@ -1201,7 +1201,7 @@ When you navigate to your source [in the UI](https://pipedream.com/sources), you
1201
1201
1202
1202
#### API
1203
1203
1204
-
Events can be retrieved using the [REST API](/api/rest/) or [SSE stream tied to your component](/api/sse/). This makes it easy to retrieve data processed by your component from another app. Typically, you'll want to use the [REST API](/api/rest/) to retrieve events in batch, and connect to the [SSE stream](/api/sse/) to process them in real time.
1204
+
Events can be retrieved using the [REST API](/rest-api) or [SSE stream tied to your component](/api/sse/). This makes it easy to retrieve data processed by your component from another app. Typically, you'll want to use the [REST API](/rest-api) to retrieve events in batch, and connect to the [SSE stream](/api/sse/) to process them in real time.
Copy file name to clipboardExpand all lines: docs-v2/pages/connect/api.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,13 +293,13 @@ GET /{project_id}/accounts/
293
293
294
294
The ID or name slug the app you'd like to retrieve. For example, Slack's unique app ID is `app_OkrhR1`, and its name slug is `slack`.
295
295
296
-
You can find the app's ID in the response from the [List apps](#list-apps) endpoint, and the name slug under the **Authentication** section of any [app page](https://pipedream.com/apps).
296
+
You can find the app's ID in the response from the [List apps](/rest-api#list-apps) endpoint, and the name slug under the **Authentication** section of any [app page](https://pipedream.com/apps).
297
297
298
298
---
299
299
300
300
`oauth_app_id`**string** (_optional_)
301
301
302
-
The ID of the custom [OAuth app](/connect/quickstart#creating-a-custom-oauth-client) you'd like to retrieve accounts for.
302
+
The ID of the custom [OAuth app](/connect/quickstart#create-a-pipedream-oauth-client) you'd like to retrieve accounts for.
The app ID for which you want to delete all connected accounts. `app_id` can be `oauth_app_id` for [OAuth apps](/connect/quickstart#creating-a-custom-oauth-client) or [name slug](/connect/quickstart/#find-your-apps-name-slug) for key-based apps.
710
+
The app ID for which you want to delete all connected accounts. `app_id` can be `oauth_app_id` for [OAuth apps](/connect/quickstart#create-a-pipedream-oauth-client) or name slug for key-based apps, which you can find under the **Authentication** section of any [app page](https://pipedream.com/apps)
0 commit comments