Skip to content

Modify Multistep Test



POST /api/v1/dialing_task/{task_uuid}/multi_task_modify

Overview

Replaces the entire existing Multistep Test flow.

Before You Call and Usage Steps

First, use get to confirm the target type=multi and back up all steps/nodes/tags; the replacement is complete, not a partial modification. The current public adapter forces task.status to ok, so even if the original task is stop, this modification may enable it. To keep it stopped, evaluate the execution window between the two steps and disable it again after the modification; this cannot guarantee that no execution occurs. Each stepId is unconditionally regenerated, and old identifiers cannot continue to be used as references.

The HTTP step request body is an object; the server converts it to a JSON string before saving. In the response, steps[].task is not an object. Only GET/POST/PUT/HEAD are supported, and the URL must satisfy the public regular expression; scripts/conditions must not conflict with post_mode. extracted_vars only checks structure and dependencies. The check_extracted_vars online extraction check is not currently executed, so there is no guarantee that field actually exists or that subsequent variable references will succeed. For wait, business logic should explicitly specify 1..180 seconds; although empty steps or missing wait values may not necessarily be rejected up front, they are not supported execution configurations.

Node provisioning, delivery, and database commit are not atomic transactions; a failure may still leave remote execution configuration. First read back by uuid/name, confirm the saved configuration and remote delivery status, and then handle only unfinished modifications. Omitting tags in the modification clears tags, and regions is replaced as a whole; free/Free Plan frequency limits are the same as for regular tasks. See Custom Synthetic Testing to understand advanced HTTP options.

Route Parameters

Parameter Name Type Required Description
task_uuid string Y Must be the current multistep task, not a step ID or node UUID.
Example: dial_example
How to obtain or enter: Get the uuid of a type=multi task in this workspace from the list.

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 permission for this operation from API Key Management in the target workspace.

Body Request Parameters

Parameter Name Type Required Description
regions[*] string Single node UUID; capabilities of nodes for different protocols must be confirmed against the actual platform.
Example: reg_example
How to obtain or enter: Use the uuid of a currently available node record, not the node name/city or keycode.
tags[*] string Deduplicated by name, not tag_ UUID; an error is reported if it does not fall within the Synthetic Testing scope.
Example: production
How to obtain or enter: Take a single business tag name.
task.steps[*] json A single step object; additional undeclared step keys are not allowed.
Example: {"type": "http", "task": {"name": "检查健康", "method": "GET", "url": "https://example.com/health", "post_mode": "default", "success_when": [{"status_code": [{"is": "200"}]}]}}
How to obtain or enter: Choose an http request or wait step as needed.
task.steps[*].type string Required. http/wait.
Example: http
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].allow_failure boolean Optional for http only; whether to continue subsequent steps after a failure, which is not a guarantee that the entire task succeeds.
Example: false
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].stepId string Optional non-empty step identifier; if omitted for a new step, the server generates it. Modification unconditionally regenerates each stepId, so do not use it to maintain stable external references.
Example: STEP-ID
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].value integer Number of seconds for wait; business logic should use 1..180. Current validation only checks that it is an integer and ≤180, and does not require it or enforce a lower bound. Do not rely on undefined execution behavior for negative or omitted values.
Example: 5
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].extracted_vars array Optional extracted variable array; it does not execute scripts on the spot to verify whether field is actually produced.
Example: []
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].task json Request object required for HTTP step business logic, limited to the fields in the table below; do not include it for wait.
Example: {}
How to obtain or enter: Construct according to the actual HTTP flow and step requirements.
task.steps[*].extracted_vars[*].name string If any of name/field/secure is present, the other two must also be provided; each item in the optional array is submitted as a complete object; variable name.
Example: TOKEN
How to obtain or enter: Obtain from the fields actually produced by the step post_script and the subsequent reference definitions.
task.steps[*].extracted_vars[*].field string If any of name/field/secure is present, the other two must also be provided; each item in the optional array is submitted as a complete object; the field to extract from the current step script output, not the variable value itself.
Example: token
How to obtain or enter: Obtain from the fields actually produced by the step post_script and the subsequent reference definitions.
task.steps[*].extracted_vars[*].secure boolean If any of name/field/secure is present, the other two must also be provided; each item in the optional array is submitted as a complete object; whether it is a secure variable, handled by the execution platform; this does not mean this API will verify/encrypt any value on the spot.
Example: true
How to obtain or enter: Obtain from the fields actually produced by the step post_script and the subsequent reference definitions.
task.steps[*].task.name string Required non-empty step request name.
Example: 检查健康
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.method string Required GET/POST/PUT/HEAD; do not directly apply arbitrary methods from regular HTTP.
Example: GET
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.url string Required non-empty absolute HTTP(S) URL, which must pass the current domain/TLD regular expression; raw IP/localhost/template addresses may be rejected by this public validation, so verify with the real target first.
Example: https://example.com/health
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.advance_options json Optional advanced object for HTTP requests/authentication/Body/certificates, etc.
Example: {}
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.success_when array Default judgment must be provided; can be included only when post_mode=default, and a non-empty script can replace the conditions required by regular HTTP.
Example: [{"status_code": [{"is": "200"}]}]
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.success_when_logic string and/or, can be included only when post_mode=default.
Example: and
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.post_mode string Required default/script; it is not an optional field with a default.
Example: default
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.post_script string Can be included only when post_mode=script; provide a verified Pipeline script; when non-empty, it can replace success_when.
Example:
How to obtain or enter: Construct from the current step's target API and verified HTTP judgment configuration.
task.steps[*].task.advance_options.request_options json Applicable to HTTP/WebSocket, optional; HTTP/WebSocket request options.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.follow_redirect boolean Applicable to HTTP/WebSocket, optional; whether to follow redirects; if omitted, the execution-side default is used.
Example: false
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.headers json Applicable to HTTP/WebSocket, optional; mapping from request header names to string values; do not write real credentials in examples.
Example: {"Accept": "application/json"}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.headers.请求头名 string Applicable to HTTP/WebSocket, optional; dynamic request header value; the name should be the header required by the real API.
Example: application/json
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.cookies string Applicable to HTTP/WebSocket, optional; Cookie text, can be omitted.
Example:
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.auth json Applicable to HTTP/WebSocket, optional; HTTP Basic username and password configuration, can be omitted.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.auth.username string Applicable to HTTP/WebSocket, optional; Basic username, provided by the target API administrator.
Example: USER-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_options.auth.password string Applicable to HTTP/WebSocket, optional; Basic password; inject it from a secure credential source.
Example: PASSWORD-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_body json Applicable to HTTP/WebSocket, optional; request Body format and content.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_body.body_type string Applicable to HTTP/WebSocket, optional; request Content-Type, for example application/json/text/plain/text/xml/multipart/form-data.
Example: application/json
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_body.body string Applicable to HTTP/WebSocket, optional; request body string; modifications must retain the necessary business content.
Example: {"check":true}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_body.form json Applicable to HTTP/WebSocket, optional; mapping from multipart form fields to strings, can be omitted.
Example: {"check": "true"}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_body.form.字段名 string Applicable to HTTP/WebSocket, optional; a single form value.
Example: true
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.request_timeout string Applicable to HTTP/WebSocket, optional; HTTP total timeout duration; execution-side default is 60s; Studio does not replace validation by the actual execution side.
Example: 60s
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.protocol string Applicable to HTTP/WebSocket, optional; HTTP protocol auto/http/1.1/http/2/http/2-only/http/3; support depends on the node version; do not configure a proxy together with HTTP3.
Example: auto
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.certificate json Applicable to HTTP/WebSocket, optional; request TLS certificate configuration.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.certificate.ignore_server_certificate_error boolean Applicable to HTTP/WebSocket, optional; whether to ignore certificate verification errors.
Example: false
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.certificate.certificate string Applicable to HTTP/WebSocket, optional; PEM client certificate, provided by the target service.
Example: CERTIFICATE-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.certificate.private_key string Applicable to HTTP/WebSocket, optional; PEM private key corresponding to the certificate; use a secure source.
Example: PRIVATE-KEY-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.certificate.ca string Applicable to HTTP/WebSocket, optional; CA content; some HTTP execution sides retain it but do not use it; for DNS, certificate.ca is directly interpreted according to its protocol.
Example: CA-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.proxy json Applicable to HTTP/WebSocket, optional; HTTP proxy object; do not assume a node can access any proxy.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.proxy.url string Applicable to HTTP/WebSocket, optional; proxy URL.
Example: http://proxy.example.com:8080
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.proxy.headers json Applicable to HTTP/WebSocket, optional; proxy-specific string header mapping.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.proxy.headers.请求头名 string Applicable to HTTP/WebSocket, optional; a single proxy request header value.
Example: VALUE-PLACEHOLDER
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.secret json Applicable to HTTP/WebSocket, optional; legacy HTTP request data saving option, subject to execution-side support.
Example: {}
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.advance_options.secret.not_save boolean Applicable to HTTP/WebSocket, optional; whether request content is not saved; this cannot replace masking of returned documents/logs.
Example: true
How to obtain or enter: Construct according to the target HTTP API/node configuration and Custom Synthetic Testing.
task.steps[*].task.success_when[*].body array Optional assertion set; key names follow the actual response; use only comparisons supported by the execution side.
Example: []
How to obtain or enter: Select body or a specific header from the real HTTP/WebSocket response.
task.steps[*].task.success_when[*].body[*].contains string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].body[*].not_contains string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].body[*].is string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].body[*].is_not string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].body[*].match_regex string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].body[*].not_match_regex string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名 array Optional assertion set; key names follow the actual response; use only comparisons supported by the execution side.
Example: []
How to obtain or enter: Select body or a specific header from the real HTTP/WebSocket response.
task.steps[*].task.success_when[*].header.响应头名[*].contains string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名[*].not_contains string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名[*].is string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名[*].is_not string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名[*].match_regex string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header.响应头名[*].not_match_regex string Single text comparison; choose according to the required operation; regular expression semantics are validated by the execution side, and a successful save does not prove a match.
Example: healthy
How to obtain or enter: Take the response text/valid regular expression to match; do not copy sensitive values from the response.
task.steps[*].task.success_when[*].header json Optional mapping from header names to condition sets.
Example: {}
How to obtain or enter: Take real response header names.
task.steps[*].task.success_when[*].status_code array Optional HTTP status assertion set for HTTP; compares strings according to the execution-side protocol.
Example: [{"is": "200"}]
How to obtain or enter: Select a successful HTTP status code or corresponding regular expression.
task.steps[*].task.success_when[*].status_code[*].is string Single status code assertion operation; do not mix with the mobile expectedResponseCode integer array.
Example: 200
How to obtain or enter: Take the expected status/status regular expression for the target API.
task.steps[*].task.success_when[*].status_code[*].is_not string Single status code assertion operation; do not mix with the mobile expectedResponseCode integer array.
Example: 200
How to obtain or enter: Take the expected status/status regular expression for the target API.
task.steps[*].task.success_when[*].status_code[*].match_regex string Single status code assertion operation; do not mix with the mobile expectedResponseCode integer array.
Example: 200
How to obtain or enter: Take the expected status/status regular expression for the target API.
task.steps[*].task.success_when[*].status_code[*].not_match_regex string Single status code assertion operation; do not mix with the mobile expectedResponseCode integer array.
Example: 200
How to obtain or enter: Take the expected status/status regular expression for the target API.
task.steps[*].task.success_when[*].response_time string HTTP duration threshold, not a TCP historical latency array.
Example: 100ms
How to obtain or enter: Set according to the target HTTP total response time requirement.
regions array Y Required array. For regular tasks it must be non-empty; for mobile tasks it must be explicitly [], and task.nodeSelection is used instead. Modification replaces the node set as a whole; removing a node delivers a stop to the original node.
Allows null: False
Example: ["reg_example"]
How to obtain or enter: Get the real node uuid from the Available Node List or Default Region List.
task json Y Required complete object; maxDictLength=20000, calculated by the server-side weighted dictionary length; it is not a single HTTP task or string. Modification replaces steps/tags/nodes as a whole.
Allows null: False
Dictionary length limit: 20000
Example: {}
How to obtain or enter: Combine HTTP request and wait steps according to the multistep protocol on this page.
task.name string Y Required; after trim, 1..256 Python characters; the trimmed result is saved; all Synthetic Testing types share non-deleted name uniqueness. Modification must provide the complete name.
Allows null: False
Example: 站点可用性
How to obtain or enter: Define a task name unique in this workspace as required by the business.
task.frequency string Y Required, no default; free/Free Plan workspaces support only 30m/1h/6h/12h/24h. Do not apply arbitrary second-level frequencies from DataKit manual JSON.
Allows null: False
Allowed values: ['1m', '5m', '15m', '30m', '1h', '6h', '12h', '24h']
Example: 5m
How to obtain or enter: Choose 1m/5m/15m/30m/1h/6h/12h/24h based on business budget and execution requirements.
task.desc string Optional, can be an empty string; omitting it does not guarantee that the old value is retained.
Allows null: False
Allows empty string: True
Example: 登录后检查API
How to obtain or enter: The business side describes the purpose of the flow.
task.steps array Y Required array; business logic should make it non-empty. Public validation does not enforce minLength; an empty array can be saved but is not guaranteed to execute effectively. The first step cannot be wait.
Allows null: False
Example: []
How to obtain or enter: Arrange HTTP and wait steps in execution order.
tags array Optional, defaults to []. Omitting it or using [] in the modification clears tag relationships; mobile tasks also synchronize outbound tags and do not accept client-side dfLabel/extendConfig.
Allows null: False
Example: ["production"]
How to obtain or enter: Get names with dialing/all scope from the Tag List, not UUIDs.

Supplementary Parameter Notes

For advanced HTTP options in Multistep Tests, see Custom Synthetic Testing. For the complete step structure and current public validation boundaries, see the parameter table on this page.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/dialing_task/dial_example/multi_task_modify' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"regions":["reg_example"],"task":{"name":"多步健康检查","frequency":"5m","desc":"等待后再次读取","steps":[{"type":"http","allow_failure":false,"extracted_vars":[],"task":{"name":"首次检查","method":"GET","url":"https://example.com/health","post_mode":"default","success_when":[{"status_code":[{"is":"200"}]}],"success_when_logic":"and"}},{"type":"wait","value":5},{"type":"http","allow_failure":false,"extracted_vars":[],"task":{"name":"再次检查","method":"GET","url":"https://example.com/health","post_mode":"default","success_when":[{"status_code":[{"is":"200"}]}]}}]},"tags":[]}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.id integer or null Record number; for normal creation before submission, the constructed response may be null.
content.uuid string dial_ task UUID, used for subsequent get/modify/start-stop operations.
content.workspaceUUID string UUID of the workspace to which it belongs.
content.type string Saved task category; for mobile, see task.protocol for the specific protocol; multistep is multi.
content.status integer Entity status, usually 0, deleted 3; distinct from the task.status running switch.
content.isLocked integer or boolean Local/workspace lock flag; does not represent remote measured status.
content.regions array<string> Current node UUID array for regular tasks; mobile is [].
content.regions[] string Node UUID.
content.regionsInfo array or object Historical node display may be a UUID array, object array, or UUID-key mapping; creation/modification often returns the input UUID array.
content.regionsInfo[] string or object Node UUID or saved node profile.
content.regionsInfo[].uuid string Conditionally returned node UUID.
content.regionsInfo[].name string Node display name in the current language.
content.regionsInfo[].nameEn string English/compatible name.
content.regionsInfo[].nameI18n object Language-to-name mapping.
content.regionsInfo[].nameI18n.语言码 string A single display name.
content.regionsInfo.节点UUID string or object Node profile in a historical UUID-key mapping, with the same semantics as array node profiles.
content.task object Complete saved task configuration; does not include real-time Synthetic Testing results.
content.remoteStatus string Fixed to unknown for mobile; read locally only; does not query the platform in real time.
content.creator string Creator identity.
content.updator string Updater identity.
content.createAt integer Creation Unix seconds.
content.updateAt integer Update Unix seconds.
content.deleteAt integer Deletion Unix seconds; -1 if not deleted.
content.task.name string Multistep task name.
content.task.frequency string Task frequency.
content.task.desc string Task description, can be omitted.
content.task.status string The public multistep adapter writes ok; modification may also re-enable it.
content.task.config_vars array Fixed to empty by the public adapter; does not accept root-level variable configuration.
content.task.steps array<object> Saved execution steps.
content.task.steps[].type string http/wait.
content.task.steps[].stepId string Server-side step identifier, rebuilt on modification.
content.task.steps[].allow_failure boolean Whether to continue after an HTTP failure.
content.task.steps[].value integer Wait seconds.
content.task.steps[].extracted_vars array<object> Extracted variable definitions.
content.task.steps[].extracted_vars[].name string Variable name.
content.task.steps[].extracted_vars[].field string Extracted field.
content.task.steps[].extracted_vars[].secure boolean Secure flag.
content.task.steps[].task string HTTP step configuration is saved as a JSON string, unlike the request object; JSON-decode it before reading the HTTP step fields on this page.
content.declaration object or null Workspace common declaration attached to non-empty response business objects; may be null or an empty object when not configured; an empty object is not added.
{
  "code": 200,
  "content": {
    "id": 100,
    "uuid": "dial_example",
    "workspaceUUID": "wksp_example",
    "type": "multi",
    "status": 0,
    "isLocked": false,
    "regions": [
      "reg_example"
    ],
    "regionsInfo": [
      "reg_example"
    ],
    "task": {
      "name": "多步健康检查",
      "frequency": "5m",
      "desc": "等待后再次读取",
      "steps": [
        {
          "type": "http",
          "allow_failure": false,
          "extracted_vars": [],
          "task": "{\"name\": \"首次检查\", \"method\": \"GET\", \"url\": \"https://example.com/health\", \"post_mode\": \"default\", \"success_when\": [{\"status_code\": [{\"is\": \"200\"}]}], \"success_when_logic\": \"and\"}",
          "stepId": "STEP-1"
        },
        {
          "type": "wait",
          "value": 5,
          "stepId": "STEP-2"
        },
        {
          "type": "http",
          "allow_failure": false,
          "extracted_vars": [],
          "task": "{\"name\": \"再次检查\", \"method\": \"GET\", \"url\": \"https://example.com/health\", \"post_mode\": \"default\", \"success_when\": [{\"status_code\": [{\"is\": \"200\"}]}]}",
          "stepId": "STEP-3"
        }
      ],
      "status": "ok",
      "config_vars": []
    },
    "creator": "wsak_example",
    "updator": "wsak_example",
    "createAt": 1785427200,
    "updateAt": 1785427200,
    "deleteAt": -1,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

For authentication, rate limiting, and common request errors, see Common Error Definitions.

For regular downstream dialtesting.invalidRegion, it maps to ft.DialingRegionError and preserves the actual HTTP; other 4xx responses can preserve the actual HTTP and error_code/message; >=500 is uniformly 500. A saved configuration does not mean each step actually succeeds.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation condition Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Request JSON syntax is invalid Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError Body top level is not a JSON object Some JSON file format error Submit a complete JSON object containing fields such as regions/task.
400 ft.InvalidDialingRegion regions is empty for a regular task Invalid Synthetic Testing region Select at least one real node UUID from the available node list; mobile tasks are the exception and must be [].
400 ft.ParamsValidateError The task name or step type/HTTP method/URL/post_mode/variable dependency/wait upper limit does not conform to the contract on this page Parameter validation failed: {} Fix the complete step according to the multistep parameter table; do not directly apply arbitrary methods/fields from regular HTTP.
406 ft.MissingSuccessWhen The corresponding protocol lacks success_when and has no supported script replacement Missing usable judgment success_when Submit a complete availability judgment according to the protocol.
400 ft.TaskNameRepeat A non-deleted task in this workspace already has the same name (across all Synthetic Testing types) A task with the same name {} already exists in the current workspace Modify the existing UUID or change the name; names are compared after trim.
403 ft.InvalidTimeFrequency A free/Free Plan workspace uses an unsupported frequency Invalid time frequency Change to 30m/1h/6h/12h/24h or confirm that the edition supports it.
400 ft.TagScopeMismatch The tag cannot be used in the dialing scope Tag scope mismatch Use an all/dialing tag or update the scope after confirmation.
406 ft.NotFoundWorkspace The workspace record does not exist when acquiring the write lock Specified workspace not found Check the workspace status and stop writing to a released workspace.
400 ft.DialingServerError The regular Synthetic Testing SDK downstream returns the corresponding business error or task delivery fails Synthetic Testing service API call failed Check the UUID/name of this task and the delivery status of the regular Synthetic Testing service; a failure does not prove that no remote configuration exists, so confirm the actual status before proceeding. This path does not execute mobile platform calls.
400 ft.DialingRegionError Regular downstream 400 determines dialtesting.invalidRegion Some Synthetic Testing nodes for the current task are invalid. Update the configuration and save again. Replace the invalid nodes and save again; handle other HTTP errors according to the error scope below.
500 ft.InternalServerError Uncaught storage/type error, regular Synthetic Testing downstream 5xx, connection timeout, or post-submission processing failure Internal error First read back by task UUID/name and check the delivery status, then decide whether to retry; retain the traceId.
406 ft.FirstStepsNotWait The first step is wait Invalid step parameter, the first step cannot be wait Start with an HTTP request.
404 ft.NotFoundDialTask The task to modify in this workspace does not exist/has been deleted Specified cloud Synthetic Testing task not found Get the real task uuid with type=multi from the list.
406 ft.DialingBrandNoSetError The regular Synthetic Testing service corresponding to the workspace is not configured The Synthetic Testing configuration for brand {} is not configured. Have the administrator check the workspace Synthetic Testing service.
400 ft.DialingAKNoSetError The delivery signing credential is not configured Synthetic Testing AK information is not configured. Check the Launcher activation configuration Have the administrator check the Synthetic Testing service activation information.

Feedback

Is this page helpful?