Delete Synthetic Tests¶
POST /api/v1/dialing_task/delete
Overview¶
Batch delete Synthetic Tests and stop the corresponding remote configurations.
Before Calling and Usage Steps¶
First verify all UUIDs and the impact. For standard tasks, stop is issued to all current nodes, then the configuration is soft-deleted; historical tasks with no nodes skip remote delivery. For mobile tasks, delete the remote task first, then soft-delete the local task. When the mobile service switch is disabled, stop/delete is still allowed, but it may fail when the binding is missing or the remote status is unclear. Do not treat local deletion as the platform having stopped. Original Synthetic Test data and existing events are not deleted by this operation. Synthetic Test tag references are cleaned up only after all items have been deleted one by one; leftover tag references from the complete input set may also be cleaned up, and there is no guarantee that unmatched primary records are completely unaffected.
By default, only non-deleted matching objects in this workspace are processed; an empty array or a case where nothing matches can succeed with true, and no per-item match list is returned. Operations across tasks/remote and local are not an atomic batch: if a previous item has been committed and a later item fails, the whole operation is not rolled back. After an error, first read back each task.status and list existence; mobile remoteStatus is always unknown, which does not mean it was not executed. Check the platform using the error taskUUID/outcomeUnknown. Avoid blindly retrying concurrently for unknown results.
This OpenAPI module does not have a public entry point with the same name as Front debugging/import. Do not construct guessed URLs based on it. Enabling a configuration does not mean measurement results have been obtained or notifications have been delivered.
For standard legacy HTTP/TCP/ICMP/SSL/multi/browser/NetPath tests, type validation may still be triggered when stop or delete is issued. Only DNS stop/delete skips the DNS contract; TCP stop/delete only requires the success_when key and does not revalidate timeout/connection. Stop/delete cannot be uniformly described as ignoring legacy configurations.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI key with this operation permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| taskUUIDs[*] | string | Not a task name, node, or upstream taskId. Example: dial_exampleHow to obtain or enter: Take a single task UUID in this workspace. |
|
| taskUUIDs | array | Y | Required array; non-empty is recommended. Select only dial_ tasks; do not mix in nodes/templates/remote IDs. Non-matching or deleted UUIDs are not reported individually. Allows null: False Example: ["dial_example"]How to obtain or enter: Get the UUIDs of non-deleted tasks in this workspace from the Synthetic Test list. |
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/dialing_task/delete' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json' \
--data-raw '{"taskUUIDs":["dial_example"]}'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | boolean | true on success; this is not the number of matched records or a per-item result, and it does not guarantee that the remote side has completed an execution. |
{
"code": 200,
"content": true,
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
The standard SDK maps dialtesting.invalidRegion to ft.DialingRegionError and preserves the actual HTTP status; other downstream 4xx errors preserve the actual HTTP status and error_code/message; unlisted codes may also occur; standard 5xx errors are uniformly returned as 500 ft.InternalServerError. Mobile failures may include taskUUID/remoteStatus/outcomeUnknown; when an error is returned, previous items may already have been committed. Stop/delete does not force revalidation of the current creation contract for all historical tasks, and this cannot be taken to mean that legacy configurations can be re-enabled.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Check the parameter location, field name, type, and value. |
| 400 | ft.RequestJsonFormatError | Invalid request JSON syntax | Request JSON format error | Fix the JSON according to content.reason, line, and column. |
| 400 | ft.JsonFormatError | The top level of the body is not an object | Partial JSON file format error | Submit a JSON object containing taskUUIDs and the corresponding switches. |
| 409 | ft.MobileDialingOperationBusy | A batch containing mobile tasks timed out waiting for the workspace concurrent operation lock; this operation was not executed | Another operation is in progress in the current workspace. This operation was not executed. Try again later. | Retry with backoff according to retryable/operationExecuted. |
| 404 | ft.NotFoundDialTask | The original mobile task was deleted or the collection changed during the wait | The specified Cloud Synthetic Test was not found | Read the current list again before selecting targets. |
| 406 | ft.NotFoundWorkspace | The workspace to write to no longer exists | The specified workspace was not found | Confirm that the workspace is valid; do not retry against a released workspace. |
| 406 | ft.DialingBrandNoSetError | Standard task delivery is missing the corresponding service configuration | Synthetic Test configuration for the {} brand is not configured. |
Have an administrator check the workspace's Synthetic Testing service. |
| 400 | ft.DialingAKNoSetError | Signature information is missing when issuing a standard synthetic test | Synthetic testing AK information is not configured. Check the Launcher activation configuration | Have an administrator check service activation. |
| 400 | ft.DialingServerError | Mobile platform binding/remote call failed, or a standard downstream 400 failed | Synthetic Testing service API call failed | Check content.reason/taskUUID/outcomeUnknown and the committed subset to avoid duplicate operations. |
| 400 | ft.DialingRegionError | A standard synthetic testing downstream 400 determines that a node is invalid | Some synthetic testing nodes for the current task are invalid. Update the configuration and save it again. | Check the invalid nodes and current task status; stop/delete has a different intent from reconfiguration. Have an administrator handle it if necessary. |
| 500 | ft.InternalServerError | Standard downstream 5xx/connection exception or an uncaught database, configuration format, or reference handling error | Internal error | Read back the committed subset and remote status, provide traceId, and handle it by stage. |
| 406 | ft.InvalidCrontabFormat | Legacy NetPath schedule_type=crontab has an invalid expression; validation still occurs before issuing enable/stop/delete | Invalid crontab format | Fix the complete NetPath configuration first or have an administrator handle it; NetPath does not have the DNS/TCP exit validation exemption. |
| 406 | ft.MissingSuccessWhen | A standard legacy HTTP test has no script substitute, or a saved configuration such as TCP/ICMP/SSL lacks success_when; stop/delete may also validate it | Missing a usable success_when condition |
First check the legacy configuration and protocol. DNS stop/delete skips the DNS contract; TCP stop/delete still requires this key. |
| 406 | ft.MissingMethod | A saved step for standard HTTP or multistep HTTP lacks method, including when stop/delete is issued | Request method method is not specified |
Fix the complete legacy configuration, or have an administrator handle the abnormal task before operating. |
| 400 | ft.MissingCustomParameters | The saved SSL configuration lacks host/port, or required fields for strict NetPath are missing | {} field missing | Fix according to the original type; stop/delete does not uniformly skip these checks. |
| 406 | ft.FirstStepsNotWait | An existing multistep configuration has wait as the first step; validation fails before reissuing or before delete/stop | Invalid step parameter; the first step cannot be wait | Fix the multistep flow or have an administrator handle the legacy configuration. |
| 406 | ft.InvalidDialingTask | The legacy browser script is empty/invalid, or the legacy multi HTTP step name/URL is invalid | Invalid task parameter | Currently, OpenAPI browser writes are restricted by an allowlist. Fix them through the supported entry point/administrator, then retry. |
| 400 | ft.ParamsValidateError | Type validation for saved configurations such as NetPath/browser is invalid before stop/delete | Parameter validation failed: {} | Check the complete configuration of the original type; not all stop/delete operations bypass the contract. |