# Extending wait time for synthetic monitor clickpath events

**URL:** <https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594>\
**Category:** Synthetic Monitoring\
**Tags:** synthetic-monitoring\
**Created:** [October 28, 2024, 6:54pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594 "2024-10-28T18:54:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuthayak](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vuthayak](https://community.dynatrace.com/u/vuthayak)\
**Post date:** [October 28, 2024, 6:54pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/1 "2024-10-28T18:54:34Z")

</div>

Hi all,

Had a question regarding synthetic monitoring and clickpath events- In one of my clickpaths, there is an event that occasionally takes a while to load. I set up next event trigger to wait for 60s (max time available), but this error still persists. Is there anyway to exceed 60s as the max time? Image for reference

 ![vuthayak_0-1730141592377.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/1/5179a56417e2c54a529121c7837aaff43919f192.png)

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 28, 2024, 10:02pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/2 "2024-10-28T22:02:07Z")

</div>

by default, the next action doesn’t begin until the current is completed as it&nbsp; **Wait for page to load completely** &nbsp;waits for network activity to be completed after the load event is triggered, by default it wait for 60s approximately the workaround is to use API to force update your clickpath event wait time globally to be more than this number.

- **endpoint** :&nbsp;https://{environmentid}.live.dynatrace.com/api/v2/synthetic/config
- **method** : PUT
- needed **permission** :&nbsp;syntheticLocations.write
- **request body sample:**

```javascript
{
   "bmMonitorTimeout": 300000,
   "bmStepTimeout": 60000
}

```

body parameters:

1.&nbsp; **bmMonitorTimeout** : browser monitor execution timeout (ms) - default 300000 (5 minutes)  
2. **bmStepTimeout** : browser monitor single step execution timeout (ms) - default 60 seconds

for more details check these links

> **[Browser clickpath events in Classic](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/browser-monitors/browser-clickpath-events)**
>
> Learn about the event types created when recording a browser clickpath.

> **[Synthetic configuration API v2 - PUT configuration](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/synthetic-v2/synthetic-configuration-v2/put-configuration)**
>
> Update the configuration of Synthetic monitoring via the Synthetic API v2.

BR,  
Mostafa Hussein.

---

<div class="post-metadata">

**Author:** ![vuthayak](https://avatars.discourse-cdn.com/v4/letter/v/6de8d8/32.png) [@vuthayak](https://community.dynatrace.com/u/vuthayak)\
**Post date:** [October 29, 2024, 1:17pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/3 "2024-10-29T13:17:20Z")

</div>

[@MostafaHussein](https://community.dynatrace.com/user/66935)&nbsp;Sorry, I am relatively new to using Dynatrace. How would I use the API in the clickpath event?

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [October 29, 2024, 3:56pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/4 "2024-10-29T15:56:01Z")

</div>

Hello&nbsp;[@vuthayak](https://community.dynatrace.com/user/81972)

As described by&nbsp;[@MostafaHussein](https://community.dynatrace.com/user/66935)

First of all if you have cluster admin permission you will be able to execute the below steps, otherwise ask DT admin provides you with change monitoring settings on the target monitoring environment to be capable of running the attached commands.

1. You will create a token with syntheticLocations.write scope.
2. Use the created token through the Environment API V2&nbsp; \> Synthetic&nbsp;Synthetic - Locations, nodes, and configuration
3. Use&nbsp;PUT/synthetic/config the below is the description

“Updates set of synthetic related parameters defined for whole tenant (affects all monitors and all private locations).”

- Unlock using the generated token.
- Then try it out.
- Update the attached section with the suggested values.

```auto
<span>{</span> <span class="">"bmMonitorTimeout"</span><span>: </span><span>900000</span><span>,</span> <span class="">"bmStepTimeout"</span><span>: </span><span>180000</span>
}

```

Then execute.

After successful execution the attached response code should appear.

| Code | Description |
| --- | --- |
| 204 | Success. The set of synthetic related parameters has been updated |

Tip:

- The configurations values will be updated automatically and the attached error won’t be exposed again in the future.

Hopefully it helps.

KR,

Peter.

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 29, 2024, 4:02pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/5 "2024-10-29T16:02:53Z")

</div>

hello&nbsp;[@vuthayak](https://community.dynatrace.com/user/81972)&nbsp;,

- the configuration level is the environment so you’ll set the default values over all synthetic monitors

- download Postman and follow the screenshot

1. go to ` **Access Tokens** ` in the left menu, then create new one with this permission ` **syntheticLocations.write** ` once created copy it to text file to be used later, see the following 2 figures

 ![MostafaHussein_2-1730217218488.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/e/4e420048baf7de3f0c20a991afa45231f11fc960.png)

 ![MostafaHussein_3-1730217268184.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/2/727823621056ba3883f21db6d234f80e4a41d6ae.png)

2. open **Postman** , add new request, use your **environment URL** and set the method to **PUT** as the following figure, to use the mentioned endpoint ‘ **api/v2/synthetic/config** ’ you should add it to your environment base URL as shown below

3. move to **Body** tab then select **raw** and use the body as below format then edit the values as mentioned in my last reply

 ![MostafaHussein_0-1730216701672.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/7/b714725e2a48ffb2f5ccf2ec356106b650fb8235.png)

4. move to headers tab and add the **Authorization** in this format ‘ **Api-Token {place-your-token}** ’

 ![MostafaHussein_1-1730216990091.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/a/4a8dec6da8fc632c750c2eddf523712ba6205273.png)

5. just click `Send` once did, you’ll get response code 204 with no content that indicates it’s sent successfully.

 ![MostafaHussein_4-1730217666434.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/b3b41e0b0d7f94362ac1a49b4a217a2937b4e726.png)

BR,  
Mostafa Hussein.

---

<div class="post-metadata">

**Author:** ![MostafaHussein](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mostafahussein/32/2785_2.png) [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Post date:** [October 29, 2024, 4:05pm UTC](https://community.dynatrace.com/t/extending-wait-time-for-synthetic-monitor-clickpath-events/48594/6 "2024-10-29T16:05:16Z")

</div>

thanks&nbsp;[@Peter\_Youssef](https://community.dynatrace.com/user/51369), wonderful explanation.
