{"info":{"_postman_id":"03b8e6ea-0ddb-4364-abf8-1336a8c20e4d","name":"BPCC List Management API v2.0","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>With the BPCC List Management API you currently can:</p>\n<ul>\n<li>Manage the contents of <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Lists\">outbound calling lists</a></li>\n<li>Manage the contents of <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/DoNotCallLists\">Do Not Call lists</a></li>\n<li>Get information about <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/ServicesandCampaigns/OutboundTab\">enabled outbound campaigns</a></li>\n</ul>\n<p>This document specifies the corresponding REST API methods, with example requests and responses. You can load this API into the <a href=\"https://www.getpostman.com/\">Postman API Development Environment</a> to interact with the API with your own access tokens.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"}],"owner":"6735878","collectionId":"03b8e6ea-0ddb-4364-abf8-1336a8c20e4d","publishedId":"T1DtdFDu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-07-29T16:15:22.000Z"},"item":[{"name":"Authentication","item":[{"name":"Get Access Token","id":"62eec3fc-574b-4b4b-b39f-dbb3f354b8fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"","description":"<p><a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Users#Username\">Username</a> of a Bright Pattern user authorized to <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Manage_users\">manage users</a> and <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Manage_all_teams\">manage all teams</a></p>\n","type":"text"},{"key":"client_secret","value":"","description":"<p><a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Users#API_secret\">API secret key</a> generated for the above user</p>\n","type":"text"},{"key":"scope","value":"","description":"<p>Your contact center URL (e.g., <em>yourcompany.brightpattern.com</em>)</p>\n","type":"text"},{"key":"grant_type","value":"","description":"<p>Grant type; must be set to <em>client_credentials</em></p>\n","type":"text"}]},"url":"https://<tenant_URL>/configapi/v2/oauth/token","description":"<p>Returns an access token that will be used to authenticate each subsequent request made via this API.</p>\n","urlObject":{"protocol":"https","path":["configapi","v2","oauth","token"],"host":["<tenant_URL>"],"query":[],"variable":[]}},"response":[{"id":"699253a1-f4f2-4016-9b1c-7716f34a2ab4","name":"Get Access Token","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"client_id","value":"some.user","description":"[Username](https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Users#Username) of a Bright Pattern user authorized to [manage users](https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Manage_users) and [manage all teams](https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Privileges#Manage_all_teams)","type":"text"},{"key":"client_secret","value":"FHjeyOt6LWS7jMvNb6tcjyuU3KDYlG2NjeI6vJBLV72VnLrwexA3imSkkQjSwLuv","description":"[API secret key](https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Users#API_secret) generated for the above user","type":"text"},{"key":"scope","value":"yourcompany.brightpattern.com","description":"Your contact center URL (e.g., *yourcompany.brightpattern.com*)","type":"text"},{"key":"grant_type","value":"client_credentials","description":"Grant type; must be set to *client_credentials*","type":"text"}]},"url":"https://yourcompany.brightpattern.com/configapi/v2/oauth/token"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"access_token\": \"15490315E83EBC929978DB0AE84D0AC63F0DC38AAB701A949FDEF6054E4A1AF9\",\r\n    \"token_type\": \"Bearer\",\r\n    \"expires_in\": \"3600\",\r\n    \"scope\": \"yourcompany.brightpattern.com\"\r\n}"}],"_postman_id":"62eec3fc-574b-4b4b-b39f-dbb3f354b8fb"}],"id":"f94ed3d6-d60c-4b07-85fc-48c88ed9eb1b","description":"<p>The <a href=\"https://tools.ietf.org/html/rfc6749#section-4.4\">OAuth 2.0 Client Credentials Grant</a> is used to authenticate clients of this API. The authenticated user is checked for having appropriate privileges to perform the requested operation. The complete list of privileges can be found <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Privileges\">here</a>. Privileges are assigned to users via one or more <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Roles\">roles</a>.</p>\n<p>To obtain an access token:</p>\n<ol>\n<li>Login to the Contact Center Administrator application.</li>\n<li>Navigate to the <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/Users\">Users</a> page. Select or create a user with privileges corresponding to the tasks you wish to perform via the BPCC List Management API.</li>\n<li>Click the Generate button to generate an <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/UsersandTeams/Users#API_secret\">API secret key</a>. Copy the generated key and note the username for the next steps.</li>\n<li>Use the <em>Get Access Token</em> method to obtain an access token. Set the <em>client_id</em> to the username and <em>client_secret</em> to the generated API secret key.</li>\n<li>Use the value of <em>access_token</em> returned in the response to set the <em>Authorization: Bearer [access token]</em> header of each subsequent request made via the BPCC List Management API.</li>\n</ol>\n","event":[{"listen":"prerequest","script":{"id":"8cff7da8-3a40-44b9-95c8-60ec33dd8f0b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b20494b-f1f4-4f8a-8ef8-2b5d79559b81","type":"text/javascript","exec":[""]}}],"_postman_id":"f94ed3d6-d60c-4b07-85fc-48c88ed9eb1b"},{"name":"Calling List","item":[{"name":"Add Many Records","id":"b34e33b1-199a-41be-be19-cdb48533ee56","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"fieldName_1\": \"value_1\", \r\n        \"fieldName_n\": \"value_n\"\r\n    },\r\n          ...\r\n]"},"url":"https://<tenant_URL>/configapi/v2/callinglist/addAll/<list_name>","description":"<p>This method adds multiple new records to the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition already exists. </p>\n<p>Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>Key fields and required fields are mandatory.</li>\n<li><strong>list_name</strong> is the name of the calling list (e.g., list.csv).</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success (may be partial success; additional problem description contained in response)</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","addAll","<list_name>"],"host":["<tenant_URL>"],"query":[],"variable":[]}},"response":[{"id":"5adeeee3-3027-4c79-805f-9dbad2486dc2","name":"Add Many Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n    \"ID\": \"5\",\r\n    \"firstName\": \"Blade\",\r\n    \"lastName\": \"Clark\",\r\n    \"Phone\": \"14155555555\",\r\n    \"Status\": \"Gold\"\r\n    },\r\n    \r\n    {\r\n    \"ID\": \"6\",\r\n    \"firstName\": \"Eli\",\r\n    \"lastName\": \"Smit\",\r\n    \"Phone\": \"15105555555\",\r\n    \"Status\": \"Bronze\"\r\n    }\r\n] ","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/addAll/:list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","addAll",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"b34e33b1-199a-41be-be19-cdb48533ee56"},{"name":"Add Record","id":"a42acd99-1f50-41f4-823b-8d65e078ef31","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fieldName_1\": \"value_1\",\r\n    ...\r\n    \"fieldName_n\": \"value_n\"\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/add/:list_name","description":"<p>This method adds a single new record to the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition already exists.</p>\n<p>Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>Key fields and required fields are mandatory.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success (response body is empty)</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Duplicate key error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","add",":list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"544ae1a1-d99a-44a4-b4fa-deccf414c6ac","name":"Add Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"ID\": \"4\",\r\n    \"firstName\": \"Post\",\r\n    \"lastName\": \"Melon\",\r\n    \"Phone\": \"16505555555\",\r\n    \"Status\": \"Platinum\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/add/:list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","add",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"a42acd99-1f50-41f4-823b-8d65e078ef31"},{"name":"Delete All Records","id":"0d2dbc2b-c9ca-406e-a528-7994b6db8554","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":"https://<tenant_URL>/configapi/v2/callinglist/deleteAll/:list_name","description":"<p>This method deletes all records from the calling list. List results are also deleted. It returns OK if the list exists but is empty already. Note that this method erases calling list results and it will do so regardless of whether the results have been exported or not.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","deleteAll",":list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"a6ad46d1-e580-4101-a004-1721c8008f74","name":"Delete All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/deleteAll/:list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","deleteAll",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"0d2dbc2b-c9ca-406e-a528-7994b6db8554"},{"name":"Get All Records","id":"343ed3d3-c164-4eb5-bb88-80e252abee12","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromIndex\": 123456,\r\n    \"maxSize\": 100\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/getAll/:list_name/:campaign_name","description":"<p>Calling list records are sequentially numbered in order of insertion, beginning from zero. This method returns a list of records in the calling list that has an index that is greater than or to equal to the requested record index.</p>\n<p>Input parameters are \"initial record index\" and \"maximum size of returned list.\" Current implementation limits \"maxSize\" to 1000 records. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>The returned list contains JSON objects sorted by index.</li>\n<li>The “entry” field of these objects contains a copy of the list entry</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” field contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if the record was never called or never reached the agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, campaign is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getAll",":list_name",":campaign_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"961cf954-49e7-4810-8dd1-55090e92196d","name":"Get All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromIndex\": 0,\r\n    \"maxSize\": \"100\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/getAll/:list_name/:campaign_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","getAll",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"entry\": {\n            \"firstname\": \"Graham\",\n            \"phone\": \"16509999999\",\n            \"id\": \"1\",\n            \"lastname\": \"Smith\",\n            \"status\": \"Gold\"\n        },\n        \"index\": 0,\n        \"status\": {\n            \"globalInteractionID\": \"0B767156-D012-4F63-A3E2-12ACFC2F26EA\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"No disposition\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16509999999\",\n            \"lastDate\": \"2021-02-19T19:11:40.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Mike\",\n            \"phone\": \"16507777777\",\n            \"id\": \"2\",\n            \"lastname\": \"Miller\",\n            \"status\": \"Platinum\"\n        },\n        \"index\": 1,\n        \"status\": {\n            \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Try again later\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16507777777\",\n            \"lastDate\": \"2021-02-19T19:12:21.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16505555555\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"index\": 2,\n        \"status\": {\n            \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Product sold\",\n            \"totalAttempts\": 1,\n            \"completed\": true,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16505555555\",\n            \"lastDate\": \"2021-02-19T19:12:37.000\"\n        }\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Jenny\",\n            \"phone\": \"16502222222\",\n            \"id\": \"4\",\n            \"lastname\": \"Green\",\n            \"status\": \"Gold\"\n        },\n        \"index\": 3,\n        \"status\": {\n            \"globalInteractionID\": \"35DE77AC-5A37-4907-97CA-50B09B30ECDF\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Fast busy\",\n            \"totalAttempts\": 1,\n            \"completed\": false,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16502222222\",\n            \"lastDate\": \"2021-02-19T19:13:08.000\"\n        }\n    }\n]"}],"_postman_id":"343ed3d3-c164-4eb5-bb88-80e252abee12"},{"name":"Get Completed Records","id":"7f5f37ba-54b4-48f4-80e8-810381e8bbf1","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2013-03-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/getCompleted/:list_name/:campaign_name","description":"<p>This method returns a list of completed records in the calling list that have a completion time that is greater than or equal to the requested initial time (UTC). Input parameters are the initial time in ISO format and the maximum size of the returned list. Current implementation limits \"maxSize\" to 1000 records. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>The returned list contains JSON objects sorted by completion time.</li>\n<li>The “entry” field of these objects contains a copy of the list entry.</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” field contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if record was never called or never reached agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, campaign is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getCompleted",":list_name",":campaign_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"dffe67a6-dc10-4afa-abe9-471eb66fc0cd","name":"Get Completed Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2021-02-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/getCompleted/:list_name/:campaign_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","getCompleted",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"completedTime\": \"2021-02-19T19:12:37.000\",\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16502222222\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"status\": {\n            \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n            \"lastCallDuration\": 0,\n            \"lastDisposition\": \"Product sold\",\n            \"totalAttempts\": 1,\n            \"completed\": true,\n            \"lastAgent\": \"elizabeth\",\n            \"lastPhone\": \"16502222222\",\n            \"lastDate\": \"2021-02-19T19:12:37.000\"\n        }\n    }\n]"}],"_postman_id":"7f5f37ba-54b4-48f4-80e8-810381e8bbf1"},{"name":"Get Updated Records","id":"bb6c74d0-a587-4986-bf35-2ea1aaf57881","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2013-03-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/getChanged/:list_name/:campaign_name","description":"<p>This method returns records of the specified calling list that have had any activity within the specified campaign since the requested initial time.</p>\n","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","getChanged",":list_name",":campaign_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"description":{"content":"<p>The name of the outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaign_name"}]}},"response":[{"id":"9500ecb9-b316-46fd-a2f7-74ae98ba2dfb","name":"Get Updated Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fromTime\": \"2021-01-01T13:15:06.456\",\r\n    \"maxSize\": \"100\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/getChanged/:list_name/:campaign_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","getChanged",":list_name",":campaign_name"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaign_name","value":"Outbound%20Campaign"}]}},"status":"Success","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\n    {\n        \"entry\": {\n            \"firstname\": \"Graham\",\n            \"phone\": \"16509999999\",\n            \"id\": \"1\",\n            \"lastname\": \"Smith\",\n            \"status\": \"Gold\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"No disposition\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:11:40.000\",\n                \"phone\": \"16509999999\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"0B767156-D012-4F63-A3E2-12ACFC2F26EA\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Mike\",\n            \"phone\": \"16507777777\",\n            \"id\": \"2\",\n            \"lastname\": \"Miller\",\n            \"status\": \"Platinum\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Try again later\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:12:21.000\",\n                \"phone\": \"16507777777\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Katrina\",\n            \"phone\": \"16505555555\",\n            \"id\": \"3\",\n            \"lastname\": \"Johnson\",\n            \"status\": \"Silver\"\n        },\n        \"completed\": true,\n        \"recordDisposition\": \"Product sold\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Product sold\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:12:37.000\",\n                \"phone\": \"16505555555\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"9D914127-C1C4-4587-8B30-4E2A9790D184\",\n                \"CPADuration\": 0\n            }\n        ]\n    },\n    {\n        \"entry\": {\n            \"firstname\": \"Jenny\",\n            \"phone\": \"16502222222\",\n            \"id\": \"4\",\n            \"lastname\": \"Green\",\n            \"status\": \"Gold\"\n        },\n        \"completed\": false,\n        \"recordDisposition\": \"\",\n        \"recordDispositionCode\": \"\",\n        \"totalAttempts\": 1,\n        \"attempts\": [\n            {\n                \"call_attempted\": false,\n                \"disposition\": \"Fast busy\",\n                \"dispositionCode\": \"\",\n                \"date\": \"2021-02-19T19:13:08.000\",\n                \"phone\": \"16502222222\",\n                \"callDuration\": 0,\n                \"dialingDuration\": 0,\n                \"callNotes\": \"\",\n                \"agent\": \"elizabeth\",\n                \"globalInteractionID\": \"35DE77AC-5A37-4907-97CA-50B09B30ECDF\",\n                \"CPADuration\": 0\n            }\n        ]\n    }\n]"}],"_postman_id":"bb6c74d0-a587-4986-bf35-2ea1aaf57881"},{"name":"Query a Record","id":"e171a3f8-b9b2-483a-8e7c-b6a20fc1fd94","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"keyfieldName_1\": \"value_1\",\r\n    ...\r\n    \"keyfieldName_n\": \"value_n\"\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/get/:list_name/:campaignname","description":"<p>This method queries the status of an existing record in the specified calling list in the specified campaign. It returns an error if a record with the same values of unique keys as configured in the list definition does not exist. All time values are returned in UTC.</p>\n<p>Notes:</p>\n<ul>\n<li>Campaign name is optional but has to be present.</li>\n<li>Use any string value instead.</li>\n<li>The request can contain either a full or partial set of fields for the object, but the key fields are mandatory.</li>\n<li>Only key fields are used for the object search; the non-key fields are ignored.</li>\n<li>There are two sub-objects in the returned JSON.</li>\n<li>The “entry” contains a copy of the list entry.</li>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The “status” contains the results of calling this record in this campaign.</li>\n<li>Field names are predefined.</li>\n<li>“Completed” is always present; all other fields may be absent if the record was never called or never reached agent.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, record is not found, or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","get",":list_name",":campaignname"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"},{"description":{"content":"<p>The name of outbound campaign (e.g., Outbound Campaign)</p>\n","type":"text/plain"},"type":"any","value":"","key":"campaignname"}]}},"response":[{"id":"197403c3-d22d-4321-9800-9a441569c0ec","name":"Query a Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"2\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/get/:list_name/:campaignname","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","get",":list_name",":campaignname"],"variable":[{"key":"list_name","value":"list.csv"},{"key":"campaignname","value":"Outbound%20Campaign"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"entry\": {\n        \"firstname\": \"Mike\",\n        \"phone\": \"16505555555\",\n        \"id\": \"2\",\n        \"lastname\": \"Miller\",\n        \"status\": \"Platinum\"\n    },\n    \"status\": {\n        \"globalInteractionID\": \"3F4F2ACD-1233-42E3-8092-3A9F7D9D84BC\",\n        \"lastCallDuration\": 0,\n        \"lastDisposition\": \"Try again later\",\n        \"totalAttempts\": 1,\n        \"completed\": false,\n        \"lastAgent\": \"elizabeth\",\n        \"lastPhone\": \"16505555555\",\n        \"lastDate\": \"2021-02-19T19:12:21.000\"\n    }\n}"}],"_postman_id":"e171a3f8-b9b2-483a-8e7c-b6a20fc1fd94"},{"name":"Update Record","id":"d904e286-fc72-4d29-ad9a-fd4a6db930e9","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"fieldName_1\": \"value_1\",\r\n    ...\r\n    \"fieldName_n\": \"value_n\"\r\n}"},"url":"https://<tenant_URL>/configapi/v2/callinglist/update/:list_name","description":"<p>This method updates fields in an existing record in the specified calling list. It returns an error if a record with the same values of unique keys as configured in the list definition does not exist. The unique keys cannot be changed.</p>\n<p><strong>Note</strong>: Updating a list record requires internal reprocessing of the entire calling list. Thus, if this method is applied to a list within a running campaign, the use of this list within the given campaign will be suspended until list reprocessing is complete. The suspension time will depend on the list size and, for long lists, may amount to tens of minutes. Other lists associated with the same campaign will not be affected.</p>\n<p>Other Notes:</p>\n<ul>\n<li>Field names are provided as they were defined during list creation.</li>\n<li>The request can contain either a full or partial set of fields for the object, but the key fields are mandatory.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found, record is not found, or invalid URL (body is empty)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","callinglist","update",":list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the calling list (e.g., list.csv)</p>\n","type":"text/plain"},"type":"any","value":"","key":"list_name"}]}},"response":[{"id":"5d9ee282-7d10-4968-b10d-fe0bccab3e8c","name":"Update Record","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"ID\": \"4\",\r\n    \"firstName\": \"Posty\",\r\n    \"lastName\": \"Melon\",\r\n    \"Phone\": \"16505555555\",\r\n    \"Status\": \"Platinum\"\r\n}"},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/callinglist/update/:list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","callinglist","update",":list_name"],"variable":[{"key":"list_name","value":"list.csv"}]}},"status":"OK","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":""}],"_postman_id":"d904e286-fc72-4d29-ad9a-fd4a6db930e9"}],"id":"2a318bb1-f2f2-4897-b1de-ebaa0cb71f3a","event":[{"listen":"prerequest","script":{"id":"a1bc3b13-0f55-4ec1-b3eb-922a3142d673","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"de86ee25-6b23-4f8f-8176-b4cbb11fcef4","type":"text/javascript","exec":[""]}}],"_postman_id":"2a318bb1-f2f2-4897-b1de-ebaa0cb71f3a","description":""},{"name":"Campaigns","item":[{"name":"Get Campaigns","id":"15c80b78-ae55-40d8-bee9-5bf52c9c9f31","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":"https://<tenant_URL>/configapi/v2/campaign/getAll/","description":"<p>This method returns the list of enabled campaigns and the calling lists currently associated with such campaigns. It does not return any disabled campaigns.</p>\n<p>Notes:</p>\n<ul>\n<li>An empty array can be returned if there are no enabled campaigns.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>OK</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (missing required fields or format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","campaign","getAll",""],"host":["<tenant_URL>"],"query":[],"variable":[]}},"response":[{"id":"e2574818-cfc5-48f1-96d0-a1a5f9f54185","name":"Get Campaigns","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"url":"https://yourcompany.brightpattern.com/configapi/v2/campaign/getAll/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"name\": \"CupIQ Dynamics Preview\",\r\n        \"state\": \"STOPPED\",\r\n        \"lists\": [\r\n            \"CupIQ Dynamics Preview.csv\"\r\n        ]\r\n    }\r\n]"}],"_postman_id":"15c80b78-ae55-40d8-bee9-5bf52c9c9f31"}],"id":"337629ca-a6b3-4dd1-8e35-246a9ae59d4a","_postman_id":"337629ca-a6b3-4dd1-8e35-246a9ae59d4a","description":""},{"name":"Do Not Call List","item":[{"name":"Add Records to DNC","id":"a4450a55-c65f-4b06-8b22-309d255f48cb","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n   …\r\n   [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]"},"url":"https://<tenant_URL>/configapi/v2/donotcalllist/add/:do_not_call_list_name","description":"<p>This method adds new records to the specified Do Not Call (DNC) list and returns the number of added (i.e., appended) records. Duplicates are ignored.</p>\n<p>An optional comment field value is inserted in the comment field of a geographic (postal) DNC record, campaign name field of an internal DNC record, and in the comment field of area codes DNC record. This method is supported for internal, geographic postal, area codes, and record exclusion <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/DoNotCallLists\">DNC lists</a>.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","add",":do_not_call_list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":"","key":"do_not_call_list_name"}]}},"response":[{"id":"3052074c-11f0-4837-8e69-9a2b9754b800","name":"Add Records to DNC","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n    [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/donotcalllist/add/:do_not_call_list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","donotcalllist","add",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":"DNC_List"}]}},"status":"Success","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"a4450a55-c65f-4b06-8b22-309d255f48cb"},{"name":"Replace Records in DNC","id":"fa686561-9397-4c09-bd51-1f6984f398dc","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n   …\r\n   [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]"},"url":"https://<tenant_URL>/configapi/v2/donotcalllist/replaceAll/:do_not_call_list_name","description":"<p>The method replaces all records in the specified Do Not Call (DNC) list and returns the number of newly inserted records. Duplicates are ignored. An optional comment field value is inserted in the comment field of a geographic (postal) DNC record, campaign name field of an internal DNC record, and in the comment field of area codes DNC record. This method is supported for internal, geographic postal area codes, and accounts' <a href=\"https://help.brightpattern.com/5.3:Contact-center-administrator-guide/DoNotCallLists\">DNC lists</a>.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Calling List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","replaceAll",":do_not_call_list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":"","key":"do_not_call_list_name"}]}},"response":[{"id":"270def6e-d2ec-4054-b416-853ab6db6a71","name":"Replace Records in DNC","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"{{vault:bearer-token}}","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    [\r\n        \"123456789\",\r\n        \"optional comment\"\r\n    ],\r\n    [\r\n        \"9999999999\",\r\n        \"optional comment\"\r\n    ]\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/donotcalllist/replaceAll/:do_not_call_list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","donotcalllist","replaceAll",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":"DNC_List"}]}},"status":"Success","code":200,"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"added\": 2\r\n}"}],"_postman_id":"fa686561-9397-4c09-bd51-1f6984f398dc"},{"name":"Delete All Records","id":"07eb162d-9eb9-4669-bfdf-25ba2d837b73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":"https://<tenant_URL>/configapi/v2/donotcalllist/deleteAll/:do_not_call_list_name","description":"<p>This method deletes all records from the specified DNC List and returns the number of deleted records.</p>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>DNC List is not found or invalid URL</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","deleteAll",":do_not_call_list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":null,"key":"do_not_call_list_name"}]}},"response":[{"id":"d2300170-2860-4c6b-a101-fb6a9ffa0ce7","name":"Delete All Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/donotcalllist/deleteAll/:do_not_call_list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","donotcalllist","deleteAll",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":null,"description":"The name of the Do Not Call list (e.g., DNC_List)"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"07eb162d-9eb9-4669-bfdf-25ba2d837b73"},{"name":"Delete Records","id":"3d2328c6-5041-4cc3-89c8-3b5384f5563e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"key\": \"9999999\"\r\n    },\r\n    {\r\n        \"key\": \"8888888\"\r\n    }\r\n]\r\n"},"url":"https://<tenant_URL>/configapi/v2/donotcalllist/delete/:do_not_call_list_name","description":"<p>This method deletes the list of specified records from the DNC List, returns the number of deleted records and list of errors if there are.</p>\n<p>Input parameters:</p>\n<ul>\n<li>List of DNC list record JSON objects</li>\n<li>Only the \"key\" field is required.</li>\n</ul>\n<h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Code</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad request (format not understood)</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Authentication failed</td>\n</tr>\n<tr>\n<td>403</td>\n<td>User authenticated but does not have sufficient privileges, or modification of this type of list is not allowed</td>\n</tr>\n<tr>\n<td>404</td>\n<td>DNC List is not found or invalid URL  <br /></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["configapi","v2","donotcalllist","delete",":do_not_call_list_name"],"host":["<tenant_URL>"],"query":[],"variable":[{"description":{"content":"<p>The name of the Do Not Call list (e.g., DNC_List)</p>\n","type":"text/plain"},"type":"any","value":null,"key":"do_not_call_list_name"}]}},"response":[{"id":"ed5e8de5-6520-40de-a914-c8b22bf6ed39","name":"Delete Records","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer <access_token>","type":"text"}],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"key\": \"9999999\"\r\n    },\r\n    {\r\n        \"key\": \"8888888\"\r\n    }\r\n]\r\n"},"url":{"raw":"https://yourcompany.brightpattern.com/configapi/v2/donotcalllist/delete/:do_not_call_list_name","protocol":"https","host":["yourcompany","brightpattern","com"],"path":["configapi","v2","donotcalllist","delete",":do_not_call_list_name"],"variable":[{"key":"do_not_call_list_name","value":null,"description":"The name of the Do Not Call list (e.g., DNC_List)"}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"3d2328c6-5041-4cc3-89c8-3b5384f5563e"}],"id":"5da9e2e1-5e2f-4369-8742-51acebbf55d7","event":[{"listen":"prerequest","script":{"id":"331f37a1-94d7-409e-bb33-c046ed611921","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1b7a73c6-8141-4163-8229-995e6831b0fd","type":"text/javascript","exec":[""]}}],"_postman_id":"5da9e2e1-5e2f-4369-8742-51acebbf55d7","description":""}],"event":[{"listen":"prerequest","script":{"id":"abefce89-34fb-42e2-8713-3cc382c23de8","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"05c6616a-fcc8-484c-81b8-0a0ce3aad92d","type":"text/javascript","exec":[""]}}]}