Create Multistep Test¶
POST /api/v1/dialing_task/multi_task_add
Overview¶
Create a multistep synthetic test consisting of HTTP request and wait steps.
Prerequisites and Usage Steps¶
Select regions from actually available default/self-hosted nodes and create a complete flow containing HTTP and wait steps. Creation forces type=multi, task.status=ok, and root config_vars=[]. After success, the test may immediately run on its schedule and incur billing. Do not pass type/status/config_vars on this page. The first step must be HTTP.
The HTTP step request body is an object; the server converts it to a JSON string before saving, so steps[].task in the response 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 it does not guarantee that field actually exists or that subsequent variable references will succeed. For wait, the business value should explicitly be 1..180 seconds; although empty steps/missing wait values are not necessarily rejected upfront, they are not supported execution configurations.
Node distribution/database submission is not an atomic transaction. A failure may already have remote execution configuration; read back by uuid/name first and do not create duplicates. tags are used for association with this new task, and regions is the set of execution nodes for the new task; frequency limits for Free Plan workspaces are the same as those for regular tests. See Custom Synthetic Tests to understand advanced HTTP options.
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 fill in: Obtain an OpenAPI Key with this operation permission from API Key Management in the target workspace. |
Body Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| regions[*] | string | A single node UUID; capabilities for nodes with different protocols must be confirmed on the actual platform. Example: reg_exampleHow to obtain or fill in: Use the uuid recorded for a currently available node, not the node name/city or keycode. |
|
| tags[*] | string | Names are deduplicated; this is not a tag_ UUID; a tag outside the synthetic testing scope causes an error. Example: productionHow to obtain or fill in: Use 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 fill in: Select an http request or wait step as needed. |
|
| task.steps[*].type | string | Required; http/wait. Example: httpHow to obtain or fill in: 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. This does not guarantee the entire task succeeds. Example: falseHow to obtain or fill in: Construct according to the actual HTTP flow and step requirements. |
|
| task.steps[*].stepId | string | Optional non-empty step identifier; omit it on creation and the server generates it. On modification, every stepId is unconditionally regenerated, so do not use it to maintain a stable external reference.Example: STEP-IDHow to obtain or fill in: Construct according to the actual HTTP flow and step requirements. |
|
| task.steps[*].value | integer | Number of seconds to wait for wait; in business terms it should be 1..180. Current validation only requires an integer and ≤180, and does not enforce required or a lower bound. Do not rely on undefined execution behavior for negative values/omission. Example: 5How to obtain or fill in: Construct according to the actual HTTP flow and step requirements. |
|
| task.steps[*].extracted_vars | array | Optional array of extracted variables; scripts are not executed on site to verify whether field is actually produced.Example: []How to obtain or fill in: Construct according to the actual HTTP flow and step requirements. |
|
| task.steps[*].task | json | Request object required for the business logic of an HTTP step, limited to the fields in the table below; do not include it for wait. Example: {}How to obtain or fill in: Construct according to the actual HTTP flow and step requirements. |
|
| task.steps[*].extracted_vars[*].name | string | When any of name/field/secure is present, the other two must also be provided; each item in the optional array must be submitted as a complete object; variable name. Example: TOKENHow to obtain or fill in: Obtain from the fields actually produced by the step's post_script and the subsequent reference definitions. |
|
| task.steps[*].extracted_vars[*].field | string | When any of name/field/secure is present, the other two must also be provided; each item in the optional array must be submitted as a complete object; the field to extract from the current step's script output, not the direct variable value. Example: tokenHow to obtain or fill in: Obtain from the fields actually produced by the step's post_script and the subsequent reference definitions. |
|
| task.steps[*].extracted_vars[*].secure | boolean | When any of name/field/secure is present, the other two must also be provided; each item in the optional array must be submitted as a complete object; whether it is a secure variable, handled by the execution platform; this does not mean this API validates/encrypts arbitrary values on site. Example: trueHow to obtain or fill in: Obtain from the fields actually produced by the step's post_script and the subsequent reference definitions. |
|
| task.steps[*].task.name | string | Required non-empty step request name. Example: 检查健康How to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.method | string | Required; GET/POST/PUT/HEAD. You cannot directly apply arbitrary methods from regular HTTP. Example: GETHow to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.url | string | Required non-empty absolute HTTP(S) URL that must pass the current domain/TLD regular expression; raw IP/localhost/template addresses may be rejected by this public validation, so validate with the real target first. Example: https://example.com/healthHow to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.advance_options | json | Optional advanced object for HTTP request/authentication/Body/certificate, etc. Example: {}How to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.success_when | array | Required for the default judgment; can be included only when post_mode=default. A non-empty script can replace the conditions normally required for regular HTTP.Example: [{"status_code": [{"is": "200"}]}]How to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.success_when_logic | string | and/or; can be included only when post_mode=default.Example: andHow to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.post_mode | string | Required; default/script. This is not an optional field with a default. Example: defaultHow to obtain or fill in: Construct from the current step's target API and validated HTTP judgment configuration. |
|
| task.steps[*].task.post_script | string | Can be included only when post_mode=script; provide a validated Pipeline script. When non-empty, it can replace success_when.Example: How to obtain or fill in: Construct from the current step's target API and validated 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 fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 applies. Example: falseHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_options.headers | json | Applicable to HTTP/WebSocket; optional; mapping from request header names to string values; do not put real credentials in examples. Example: {"Accept": "application/json"}How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_options.headers.请求头名 | string | Applicable to HTTP/WebSocket; optional; dynamic request header value; use the header name required by the real interface. Example: application/jsonHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_options.cookies | string | Applicable to HTTP/WebSocket; optional; Cookie text; can be omitted. Example: How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_options.auth.username | string | Applicable to HTTP/WebSocket; optional; Basic username, provided by the target interface administrator. Example: USER-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_body | json | Applicable to HTTP/WebSocket; optional; request Body format and content. Example: {}How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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/jsonHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_body.form.字段名 | string | Applicable to HTTP/WebSocket; optional; a single form value. Example: trueHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.request_timeout | string | Applicable to HTTP/WebSocket; optional; total HTTP timeout duration; the execution side defaults to 60s; Studio does not replace validation on the actual execution side. Example: 60sHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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: autoHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.certificate | json | Applicable to HTTP/WebSocket; optional; request TLS certificate configuration. Example: {}How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.certificate.ignore_server_certificate_error | boolean | Applicable to HTTP/WebSocket; optional; whether to ignore certificate validation errors. Example: falseHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.certificate.certificate | string | Applicable to HTTP/WebSocket; optional; PEM client certificate, provided by the target service. Example: CERTIFICATE-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 interpreted according to its protocol.Example: CA-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.proxy | json | Applicable to HTTP/WebSocket; optional; HTTP proxy object; do not assume that a node can access any proxy. Example: {}How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.proxy.url | string | Applicable to HTTP/WebSocket; optional; proxy URL. Example: http://proxy.example.com:8080How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.proxy.headers | json | Applicable to HTTP/WebSocket; optional; proxy-specific string header mapping. Example: {}How to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.proxy.headers.请求头名 | string | Applicable to HTTP/WebSocket; optional; a single proxy request header value. Example: VALUE-PLACEHOLDERHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| 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 fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.advance_options.secret.not_save | boolean | Applicable to HTTP/WebSocket; optional; whether not to save request content; this cannot replace masking of returned documents/logs. Example: trueHow to obtain or fill in: Construct based on the target HTTP interface/node configuration and Custom Synthetic Tests. |
|
| task.steps[*].task.success_when[*].body | array | Optional assertion set; key names depend on the actual response; use only comparisons supported by the execution side. Example: []How to obtain or fill in: 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 depend on the actual response; use only comparisons supported by the execution side. Example: []How to obtain or fill in: 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 successful saving does not prove a match. Example: healthyHow to obtain or fill in: Use 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 fill in: Use the real response header name. |
|
| task.steps[*].task.success_when[*].status_code | array | Optional HTTP status assertion set; strings are compared according to the execution-side protocol. Example: [{"is": "200"}]How to obtain or fill in: Select the successful HTTP status code or the 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: 200How to obtain or fill in: Use the expected status/status regular expression of the target interface. |
|
| 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: 200How to obtain or fill in: Use the expected status/status regular expression of the target interface. |
|
| 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: 200How to obtain or fill in: Use the expected status/status regular expression of the target interface. |
|
| 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: 200How to obtain or fill in: Use the expected status/status regular expression of the target interface. |
|
| task.steps[*].task.success_when[*].response_time | string | HTTP duration threshold, not the legacy TCP elapsed time array. Example: 100msHow to obtain or fill in: Set according to the target HTTP total response time requirement. |
|
| regions | array | Y | Required array. For regular tests, it must be non-empty; for Mobile tests, it must be explicitly [] and use task.nodeSelection instead. Modification replaces the entire node set; removing a node sends a stop instruction to the original node.Allows null: False Example: ["reg_example"]How to obtain or fill in: Obtain the real node uuid from the Available Node List or Default Region List. |
| task | json | Y | Required complete object; maxDictLength=20000 is calculated as the server-side weighted dictionary length; it is not a single HTTP task or a string. Modification replaces all steps/tags/nodes.Allows null: False Dictionary length limit: 20000 Example: {}How to obtain or fill in: Combine HTTP request and wait steps according to the multistep protocol on this page. |
| task.name | string | Y | Required; 1..256 Python characters after trimming; the trimmed result is saved; non-deleted names are unique across all synthetic test types. Modification requires the complete name. Allows null: False Example: 站点可用性How to obtain or fill in: The business owner defines a task name unique in this workspace. |
| task.frequency | string | Y | Required; no default; 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: 5mHow to obtain or fill in: Choose 1m/5m/15m/30m/1h/6h/12h/24h according to business budget and execution requirements. |
| task.desc | string | Optional; an empty string is allowed; omitting it does not guarantee that the old value is retained. Allows null: False Allows empty string: True Example: 登录后检查APIHow to obtain or fill in: The business owner describes the purpose of the flow. |
|
| task.steps | array | Y | Required array; in business terms it should be non-empty. Public validation does not enforce minLength; an empty array can be saved but is not guaranteed to execute validly. The first step cannot be wait.Allows null: False Example: []How to obtain or fill in: Arrange HTTP and wait steps in execution order. |
| tags | array | Optional; defaults to []. On modification, omitting it or passing [] clears tag relationships; Mobile tests also synchronize outbound tags and do not accept client-side dfLabel/extendConfig.Allows null: False Example: ["production"]How to obtain or fill in: Obtain names applicable to the dialing/all scope from the Tag List, not UUIDs. |
Additional Parameter Notes¶
For advanced multistep HTTP options, see Custom Synthetic Tests; 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/multi_task_add' \
-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 ID; the response constructed before a regular creation is submitted may be null. |
| content.uuid | string | dial task UUID, used by subsequent get/modify/start-stop operations. |
| content.workspaceUUID | string | UUID of the workspace it belongs to. |
| content.type | string | Saved task category; for Mobile sub-protocols, see task.protocol; multistep is multi. |
| content.status | integer | Entity status, usually 0, 3 for deleted; distinct from the task.status running switch. |
| content.isLocked | integer or boolean | Local/workspace lock flag; does not represent the actual remote state. |
| content.regions | array<string> | Current node UUID array for regular tests; [] for Mobile. |
| content.regions[] | string | Node UUID. |
| content.regionsInfo | array or object | Historical node display may be a UUID array, object array, or UUID-keyed mapping; on create/modify it is often the input UUID array. |
| content.regionsInfo[] | string or object | Node UUID or saved node profile. |
| content.regionsInfo[].uuid | string | Node UUID returned conditionally. |
| 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-keyed mapping, with the same semantics as array node profiles. |
| content.task | object | Complete saved task configuration; does not include real-time synthetic test 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 test name. |
| content.task.frequency | string | Task frequency. |
| content.task.desc | string | Task description; can be omitted. |
| content.task.status | string | Public multistep adaptation writes ok; modification may also re-enable. |
| content.task.config_vars | array | Fixed to empty for public adaptation; 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 | Number of seconds to wait. |
| 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, different from the request object; JSON-decode it and then read it according to the HTTP step fields on this page. |
| content.tagInfo | array<object> | Effective tag summary, empty []; regular modification may omit it; Mobile modification returns it. On read, id is a database number; in the summary generated on write, id can be a tag UUID string. |
| content.tagInfo[].id | integer or string | Database number on read; tag UUID on write. |
| content.tagInfo[].uuid | string | Tag UUID on read; may be omitted in the write branch. |
| content.tagInfo[].name | string | Tag name. |
| content.tagInfo[].description | string | Tag description on read. |
| content.tagInfo[].colour | string | Tag color on read. |
| content.tagInfo[].scope | array<string> | Write summary may include normalized scopes. |
| content.tagInfo[].scope[] | string | A single scope. |
| 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": null,
"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,
"tagInfo": [],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
A regular downstream dialtesting.invalidRegion maps to ft.DialingRegionError and preserves the actual HTTP status; other 4xx errors may preserve the actual HTTP status and error_code/message, while >=500 is uniformly 500. Saving the configuration does not mean every step actually succeeds.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field missing, or 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 | Correct 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 | Regular test regions is empty |
Invalid synthetic testing region | Select at least one real node UUID from the available node list; Mobile tests are the exception and must use []. |
| 400 | ft.ParamsValidateError | Task name or step type/HTTP method/URL/post_mode/variable dependency/wait upper limit does not meet the contract on this page | Parameter validation failed: {} | Correct the complete step according to the multistep parameter table; you cannot directly apply arbitrary methods/fields from regular HTTP. |
| 406 | ft.MissingSuccessWhen | The corresponding protocol lacks success_when and has no supported script substitute |
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 test 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 trimming. |
| 403 | ft.InvalidTimeFrequency | 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 | 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 | 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 | Regular synthetic testing SDK downstream returns a corresponding business error or task distribution fails | Synthetic testing service API call failed | Check this task's UUID/name and the distribution status of the regular synthetic testing service; a failure does not prove there is no remote configuration, so confirm the actual status before handling. 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 distribution status, then decide whether to retry; retain traceId. |
| 406 | ft.FirstStepsNotWait | The first step is wait | Invalid step parameter; the first step cannot be wait | Start with an HTTP request. |
| 406 | ft.InvalidDialingTask | Stop compensation after a regular create failure reports dialtesting.invalidTask |
Invalid task parameter |
First check the multistep task and remote distribution status to avoid duplicate creation. |
| 406 | ft.DialingBrandNoSetError | The regular synthetic testing service corresponding to the workspace is not configured | Synthetic testing configuration for brand {} is not configured. |
Ask the administrator to check the workspace synthetic testing service. |
| 400 | ft.DialingAKNoSetError | Distribution signing credential is not configured | Synthetic testing AK information is not configured. Check the Launcher activation configuration. | Ask the administrator to check the synthetic testing service activation information. |