<?php
run_query("UPDATE {$config['table_prefix']}calc_template SET
params = '{\r\n    \"title\": \"Выполнить http-запрос\",\r\n    \"help\": \"run_url_query\",\r\n    \"parameters\": {\r\n        \"url\": {\r\n            \"type\": \"String\",\r\n            \"name\": \"url\",\r\n            \"description\": \"URL запроса\",\r\n            \"textarea\": true,\r\n            \"help\": \"url_query\"\r\n        },\r\n        \"field\": {\r\n            \"type\": \"LinkField\",\r\n            \"name\": \"field\",\r\n            \"description\": \"Вставить поле\",\r\n            \"help\": \"tpl_sel_field\"\r\n        },\r\n        \"real_url\": {\r\n            \"type\": \"String\",\r\n            \"name\": \"real_url\",\r\n            \"textarea\": true,\r\n            \"description\": \"\",\r\n            \"help\": \"\"\r\n        },\r\n        \"method\": {\r\n            \"type\": \"List\",\r\n            \"name\": \"method\",\r\n            \"values\":{\"GET\":\"GET\",\"POST\":\"POST\"},\r\n            \"description\": \"Тип запроса\",\r\n            \"help\": \"tpl_http_method\"\r\n        }\r\n    },\r\n    \"events\": [\r\n        {\r\n            \"type\": 1,\r\n            \"field\": \"\"\r\n        }\r\n    ]\r\n}'
WHERE id = 123");