API
/web_api/autotest_step/save
/web_api/autotest_step/save
This page is built from the JSON Schema snapshot in the documentation repository. The snapshot is updated by a separate command from the main app catalog and is not rewritten when the site is built.
Request
main-app://schemas/api_elements/autotest_step/save.request.json
POST /web_api/autotest_step/save body
| Name | Type | Required | Constraint |
|---|---|---|---|
autotest_step_id | integer | Yes | minimum 1 |
action_name | string | No | - |
target | any | No | - |
value_text | any | No | - |
timeout_ms | any | No | - |
expected_value | any | No | - |
object_repository_page_id | any | No | - |
object_repository_element_id | any | No | - |
Other top-level fields are allowed.
Response
main-app://schemas/api_elements/autotest_step/save.response.json
POST autotest_step/save success
| Name | Type | Required | Constraint |
|---|---|---|---|
api_code | integer | Yes | const 200 |
api_result | object | Yes | other fields allowed |
empty | boolean | No | - |
Other top-level fields are not allowed.
Source schema
The files below are copied from the snapshot unchanged. A $ref fragment is a separate block. The schemas are not merged.
Request: main-app://schemas/api_elements/autotest_step/save.request.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/api_elements/autotest_step/save.request.json",
"title": "POST /web_api/autotest_step/save body",
"type": "object",
"required": [
"autotest_step_id"
],
"additionalProperties": true,
"properties": {
"autotest_step_id": {
"type": "integer",
"minimum": 1
},
"action_name": {
"type": "string"
},
"target": true,
"value_text": true,
"timeout_ms": true,
"expected_value": true,
"object_repository_page_id": true,
"object_repository_element_id": true
}
}Response: main-app://schemas/api_elements/autotest_step/save.response.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/api_elements/autotest_step/save.response.json",
"title": "POST autotest_step/save success",
"allOf": [
{
"$ref": "main-app://schemas/_shared/envelope-success.json"
},
{
"type": "object",
"properties": {
"api_result": {
"type": "object",
"additionalProperties": true
}
}
}
]
}Fragment: main-app://schemas/_shared/envelope-success.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/_shared/envelope-success.json",
"title": "Canonical success envelope",
"type": "object",
"required": ["api_code", "api_result"],
"properties": {
"api_code": { "const": 200 },
"api_result": true,
"empty": { "type": "boolean" }
},
"additionalProperties": false
}Did this page help?