Page 1 of 1

API update_list [SOLVED]

PostPosted: Wed Mar 07, 2018 7:48 am
by lmoreira
HI Guys,

Setup:
ViciBox v.8.x-trunk | VERSION: 2.14-650a | BUILD: 180111-1544 | Asterisk 11.23.1-vici | Cluster 8+ servers | No Digium/Sangoma Hardware | No Extra Software After Installation
------------------------------------------------------------------------------------

I'm not sure it's a bug or my mistake. I'm trying to reset list using Non-Agent API.

Sending this URL:
http://server-ip/vicidial/non_agent_api ... set_list=Y

I got this error:
ERROR: update_list LIST DOES NOT EXIST: |api|4016

Yep, list exist! I'm wondering where is the catch.

Re: API update_list

PostPosted: Wed Mar 07, 2018 8:42 am
by blackbird2306
Either it's simple and this list_id is not correct/existing or the api user group is restricted as not allowed.
Make sure the api user is in a group, which has setting "Allowed Campaigns" set to ALL-CAMPAIGNS or the api user is in a group, which has this setting as allowed campaigns to which the list belongs.

Re: API update_list [SOLVED]

PostPosted: Wed Mar 07, 2018 9:23 am
by lmoreira
blackbird2306 wrote:Either it's simple and this list_id is not correct/existing or the api user group is restricted as not allowed.
Make sure the api user is in a group, which has setting "Allowed Campaigns" set to ALL-CAMPAIGNS or the api user is in a group, which has this setting as allowed campaigns to which the list belongs.


BlackBird, you're wright. I changed it's group to ALL-CAMPAIGNS and it's working now.