Skip to main content

LoadPatchDatabase

Load patch database.

Syntax​

Method ID​

#define WA_VMOD_PATCH_LOAD_DATABASE 50302

JSON Input Structure​

{
"input": {
"method": 50302,
"dat_input_source_file": string,
"dat_input_checksum_file": string,
"online": number,
"use_delta_flow": number
}
}

Input Properties​

ParameterTypeDescription
dat_input_source_filestring(optional) Input patch database to be consumed.
dat_input_checksum_filestring(optional) Input checksum database to be consumed.
onlinenumber(optional) Whether to use online database or not. Value 0 will disable online mode, value 1 will enable it. Default value is 0. Only patch database available for now
use_delta_flownumber(optional) (Windows Offline Update only) Enable the Delta Update technology on the endpoint. Accepted values are as follows:
• 0: the SDK will load the Standard database.
• 1: the SDK will attempt to load the Baseline database and the corresponding Delta database. If the Baseline database is not available, it will fall back to loading the Standard database.
• 2: the SDK will attempt to load the Baseline database and the corresponding Delta database without any fallback to loading the Standard database.Default value of this field is 0.

JSON Output Structure​

{
"result": {
"method": 50302,
"code": number,
"timing": number,
"timestamp": string,
"version": string,
"schema_version": string,
"published_epoch": string,
"details": [
number,
...
],
"loaded_files": [
{
"file_name": string,
"file_path": string,
"type": string,
"version": string,
"published_epoch": string
},
...
]
}
}

Output Properties​

PropertyTypeDescription
result.methodnumberThe method ID that generated this result.
result.codenumberThe result code. See Result Codes.
result.timingnumberThe measured time for the method call in milliseconds.
result.timestampstringThe timestamp in seconds of when the call was made.
result.versionstring(optional) Version of the offline database (Only show when using offline mode).
result.schema_versionstring(optional) Schema version of the offline database (Only show when using offline mode).
result.published_epochstringThe timestamp the database was published.
result.detailsobject(optional) The detail of loaded database. This field only exists if patch database is loaded.
result.details.support_signaturesarray<number>The array of signature numbers that are supported in the database.
result.details.support_install_signaturesarray<number>(optional) The array of supported signature numbers which only support installation in the database.
result.details.self_update_signaturesarray<number>The array of supported signature numbers which cannot return download URL. Products in this signature array need to use both the download function and the install function of VMOD in order to be updated
result.loaded_filesarray<object>(optional) List of database files has been loaded. This field typically appears when Delta Update technology or smart loading feature is used.
result.loaded_files.file_namestringFilename of the loaded dataset.
result.loaded_files.file_pathstringPath to the loaded dataset.
result.loaded_files.typestringType of the loaded dataset. Possible values: 'standard', 'baseline' or 'delta'.
result.loaded_files.versionstringFormat version of the loaded dataset.
result.loaded_files.published_epochstringThe epoch timestamp when the loaded dataset was published.

Result Codes​

CodeNameDescription
0WAAPI_OKThe operation completed successfully.
note

Other codes may be returned. See the full Result Codes reference for the complete list.

Remarks​

Error Handling​

The results of this function are determined by the error code returned by the call. If successful, WAAPI_OK or a special success code will be returned. Always check both the function return value and the result.code field in the output JSON.

Examples​

Examples will be added here demonstrating the usage of this method.

See Also​


Last updated: 2026-10-01