Программный интерфейс

/web_api/tag_relation/update_property

/web_api/tag_relation/update_property ​

Страница собрана из снимка JSON Schema в репозитории документации. Снимок обновляется отдельной командой из каталога основного приложения и при сборке сайта не переписывается.

Запрос ​

main-app://schemas/api_elements/tag_relation/update_property.request.json

REQUEST /web_api/tag_relation/update_property

ИмяТипОбязательноеОграничение
tag_relation_idintegerДаminimum 1
keyenumДа"element_type", "element_id"
valueanyДа-

Другие поля верхнего уровня запрещены.

Ответ ​

main-app://schemas/api_elements/tag_relation/update_property.response.json

RESPONSE /web_api/tag_relation/update_property

ИмяТипОбязательноеОграничение
api_codeintegerДаconst 200
api_resultobjectДадругие поля допустимы
emptybooleanНет-

Другие поля верхнего уровня запрещены.

api_result ​

ИмяТипОбязательноеОграничение
tag_relation_idintegerНетminimum 0
tag_idintegerНетminimum 0
element_typeenumНет"test_suite_id", "test_case_id", "test_run_id", "test_run_result_id", "test_account_id", "bug_id", "task_id", "text_document_id", "text_document_folder_id", "execution_context_id", "autotest_case_id", "autotest_run_id", "autotest_suite_id", "object_repository_page", "object_repository_element", "object_repository_folder", "checklist_id", "checklist_result_id"
element_idintegerНет-

Исходная схема ​

Файлы ниже скопированы из снимка без изменений. Фрагмент по $ref приведён отдельным блоком, схемы не сливаются.

Запрос: main-app://schemas/api_elements/tag_relation/update_property.request.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/tag_relation/update_property.request.json",
  "title": "REQUEST /web_api/tag_relation/update_property",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "tag_relation_id",
    "key",
    "value"
  ],
  "properties": {
    "tag_relation_id": {
      "type": "integer",
      "minimum": 1
    },
    "key": {
      "type": "string",
      "enum": [
        "element_type",
        "element_id"
      ]
    },
    "value": true
  }
}
Ответ: main-app://schemas/api_elements/tag_relation/update_property.response.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/tag_relation/update_property.response.json",
  "title": "RESPONSE /web_api/tag_relation/update_property",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "allOf": [
    {
      "$ref": "main-app://schemas/_shared/envelope-success.json"
    },
    {
      "type": "object",
      "properties": {
        "api_result": {
          "$ref": "main-app://schemas/api_elements/tag_relation/row.json"
        }
      }
    }
  ]
}
Фрагмент: 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
}
Фрагмент: main-app://schemas/api_elements/tag_relation/row.json
json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "main-app://schemas/api_elements/tag_relation/row.json",
  "title": "Row tag_relation",
  "$comment": "Generated from the DB model structure_scheme. Edit the model, then run node fill-from-structure-scheme.mjs.",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "tag_relation_id": {
      "type": "integer",
      "minimum": 0
    },
    "tag_id": {
      "type": "integer",
      "minimum": 0
    },
    "element_type": {
      "type": "string",
      "enum": [
        "test_suite_id",
        "test_case_id",
        "test_run_id",
        "test_run_result_id",
        "test_account_id",
        "bug_id",
        "task_id",
        "text_document_id",
        "text_document_folder_id",
        "execution_context_id",
        "autotest_case_id",
        "autotest_run_id",
        "autotest_suite_id",
        "object_repository_page",
        "object_repository_element",
        "object_repository_folder",
        "checklist_id",
        "checklist_result_id"
      ]
    },
    "element_id": {
      "type": "integer"
    }
  }
}

Версия 1.0.0 · Последнее изменение 2026-10-07

Страница не помогла?