You are viewing documentation for the development version, it may be incomplete.
Join our translation project and help translate Zabbix documentation into your native language.



object httptest.update(object/array webScenarios)

This method allows to update existing web scenarios.

This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See User roles for more information.


(object/array) Web scenario properties to be updated.

The httptestid property must be defined for each web scenario, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

Additionally to the standard web scenario properties, the method accepts the following parameters.

Parameter Type Description
steps array Scenario steps to replace existing steps.
tags array Web scenario tags.

Return values

(object) Returns an object containing the IDs of the updated web scenarios under the httptestid property.


Enabling a web scenario

Enable a web scenario, that is, set its status to "0".


           "jsonrpc": "2.0",
           "method": "httptest.update",
           "params": {
               "httptestid": "5",
               "status": 0
           "id": 1


           "jsonrpc": "2.0",
           "result": {
               "httptestids": [
           "id": 1

See also


CHttpTest::update() in ui/include/classes/api/services/CHttpTest.php.