Updates the configuration of Synthetic monitoring in your environment.
The request consumes an application/json
payload.
PUT | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/config |
Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/config |
To execute this request, you need an access token with syntheticLocations.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
SyntheticConfigDto
objectA DTO for synthetic configuration.
bmMonitorTimeout - browser monitor execution timeout (ms)
bmStepTimeout - browser monitor single step execution timeout (ms)
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"bmMonitorTimeout": 1,"bmStepTimeout": 1}
Success. The set of synthetic related parameters has been updated. Response doesn't have a body.
In this example, the request updates the configuration of the Synthetic monitoring from the GET request example. It halves the timeouts for browser monitor and browser monitor steps—setting them to 300,000
and 30,000
respectively.
The API token is passed in the Authorization header.
You can download or copy the example request body to try it out on your own. Be sure to create a backup copy of your current configuration with the GET Synthetic configuration call.
curl --request PUT \--url https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/config \--header 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890' \--header 'Content-Type: application/json' \--data '{"bmMonitorTimeout": 300000,"bmStepTimeout": 30000}'
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/config
{"bmMonitorTimeout": 300000,"bmStepTimeout": 30000}
204