Response in JSON Format |
To receive a response in the JSON format, add the format=json parameter to your request, so it looks like this:
where: <host>—IP address or DNS name of a computer with the Dr.Web Server installed; <object>—managed object: station, group, Dr.Web Server, administrator, Quarantine. Available request scripts and their parameters are described in the following sections: •9. Administrator Group Handling.
You can receive a JSON response for any HTTP request supported by Web API 4.3.0. JSON document contains the following main elements: •the head block—for service information, •the data block—for response data. Content in this block depends on operation to be executed. Elements of the head block:
If there was any error ("status": false) during the operation, the response would include the error block with error description and code. The error would be described in the message field and error code would be in the code field.
See Appendix C. Returned Error Codes for a list of possible error codes. Date and time in all elements of all Web API 4.3.0 scripts are returned in the Unix timestamp format. |