diff --git a/docs/NON-AGENT_API.txt b/docs/NON-AGENT_API.txt index f3025d72..fdb10f77 100644 --- a/docs/NON-AGENT_API.txt +++ b/docs/NON-AGENT_API.txt @@ -1,4 +1,4 @@ -NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2024-01-05 +NON-AGENT API DOCUMENT Started: 2008-07-24 Updated: 2024-01-16 This document describes the functions of an API(Application Programming Interface) for all functions NOT directly relating to the VICIDIAL Agent screen. @@ -1846,7 +1846,7 @@ NOTE: api user for this function must have user_level set to 8 or higher and "mo REQUIRED FIELDS- list_id - 2-14 digits -list_name - 6-30 characters +list_name - 2-30 characters campaign_id - 2-8 characters, must be a valid campaign_id OPTIONAL FIELDS- diff --git a/www/vicidial/non_agent_api.php b/www/vicidial/non_agent_api.php index dc74632f..a8f9c368 100644 --- a/www/vicidial/non_agent_api.php +++ b/www/vicidial/non_agent_api.php @@ -7711,7 +7711,7 @@ if ($function == 'add_list') } else { - if ( (strlen($list_id)<2) or (strlen($list_id)>14) or (strlen($campaign_id)<1) or (strlen($campaign_id)>8) or (strlen($list_name)<6) or (strlen($list_name)>30) ) + if ( (strlen($list_id)<2) or (strlen($list_id)>14) or (strlen($campaign_id)<1) or (strlen($campaign_id)>8) or (strlen($list_name)<2) or (strlen($list_name)>30) ) { $result = 'ERROR'; $result_reason = "add_list YOU MUST USE ALL REQUIRED FIELDS";