# Extend waiting time in Wait for Trigger and Time Delay

## Overview

The [**Wait for Trigger**](/product/customer-journey/journey-elements/flow-controls/wait-for-trigger/) and [**Time Delay**](/product/customer-journey/journey-elements/flow-controls/time-delay/) elements control how long users stay in a paused state within a Journey.
Using the `extend_wait` parameter, you can extend this waiting period dynamically by sending an event to Pushwoosh.

**Example**

Suppose a user has entered a **Wait for Trigger** or **Time Delay** step in your journey, where the initial waiting time is set to 1 hour.
If you want the user to wait longer (for example, an extra 30 minutes) you can extend the wait time dynamically by sending an event to Pushwoosh with the `extend_wait` parameter.

After this extension, the user will remain in the step for a total of 1 hour + 30 minutes (1.5 hours) instead of just the original 1 hour.

## How to configure

To extend the waiting time, send an event to Pushwoosh using the [`/postEvent`](/developer/api-reference/user-centric-api/#postevent) method and include the required attributes described below.

<Aside type="note">
The event name can be arbitrary.
</Aside>


##### Required attributes

You must include these attributes in your request for the waiting time extension to work:

| Parameter <div style="width:100px"></div>    | Type    | Description                                                                 |
| ------------- | ------- | --------------------------------------------------------------------------- |
| `extend_wait` | integer | Number of seconds to extend the waiting period (e.g., `1800` = 30 minutes). |
| `journey_ids` | array   | List of Journey IDs where the extension should be applied.                  |


<Aside type="caution" title="Limitations and rules">
Maximum waiting time: 90 days from the current moment.
</Aside>

##### Example

```json
{
  "eventName": "YOUR_EVENT_NAME",
  "userId": "USER_ID_IF_EXISTS",
  "hwid": "HWID",
  "attributes": {
    "extend_wait": 1800,
    "journey_ids": ["JOURNEY_ID"]
  }
}
```