Delete a private synthetic location in Dynatrace with the Synthetic API by specifying its location ID. The operation returns no content when deletion succeeds.
| DELETE | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/synthetic/v1/locations/{location-id} |
Provide the location-id path parameter to identify the private synthetic location you want to delete. Dynatrace returns a 204 response with no body when the location has been removed.
To execute this request, you need a platform token or OAuth access token with synthetic:locations:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| location-id | string | The ID of the private synthetic location to be deleted. | path | Required |
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. The location has been deleted. Response doesn't have a body. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
ErrorResponseEnvelope objectEncloses the encountered error.
| Element | Type | Description |
|---|---|---|
| error | Error | Basic information of the encountered error. |
ErrorResponse objectBasic information of the encountered error.
| Element | Type | Description |
|---|---|---|
| code | integer | The returned HTTP status code. |
| details | Error | Detailed information of the error. |
| message | string | Description of the encountered error. |
ErrorResponseDetails objectDetailed information of the error.
| Element | Type | Description |
|---|---|---|
| type | string | Defines the actual set of fields depending on the value. See one of the following objects:
The element can hold these values
|
{"error": {"code": 1,"details": {"type": "constraintViolation"},"message": "string"}}