This adds the setting with the 'name' and 'value' for the specified list ID. If this setting already exists, the call updates the 'value'.
Argument |
Required |
Type |
Description |
id |
yes |
string |
The List ID. The list_list API with detailed enable will return the List ID. |
name |
yes |
string |
This is the setting Name. See List Settings. |
value |
yes |
string |
This is the settings value (it can be anything: 1/0, number, short text, date, etc.) |
format |
no |
string |
The format of the output for the API: text, json or xml. The default is text. |
callback |
no |
string |
This only works with Direct APIs. This is a JavaScript function that should be called after the API is completed. This function will be called with the response of the API. Please note: It can only be used when requesting this API via AJAX request. More Information can be found here. |
Example
servername/webadmin/api/list_settings_insert.php?id=VALUE&name=VALUE&value=VALUE
Output:
OK:
Version: 6.2.3