From Bright Pattern Documentation
Jump to: navigation, search
(Created new topic from branched topic Documentation:ServicePattern:list-management-api-specification:Getcampaigns:3.15)
 
 
Line 3: Line 3:
  
 
== URL ==
 
== URL ==
http[s]://<host>:<port>/admin/ws/t/<tenant_url>/campaign/getAll/
+
http[s]://<host>/admin/ws/t/&lt;tenant_url&gt;/campaign/getAll/
  
 
== Method ==
 
== Method ==
Line 12: Line 12:
  
 
=== Example ===
 
=== Example ===
{|border="1" style="border-collapse:collapse" cellpadding="5"
+
[
|
+
{
[<br />
+
"name": "CAMPAIGN1",
{<br />
+
"lists": ["LIST1", "LIST2"],
&quot;name&quot;: &quot;CAMPAIGN1&quot;,<br />
+
"state": “RUNNING”
&quot;lists&quot;: [&quot;LIST1&quot;, &quot;LIST2&quot;],<br />
+
},
&quot;state&quot;: “RUNNING”<br />
+
},<br />
+
]
<br />
 
]
 
|}
 
  
 
If enabled campaigns do not exist, an empty array is returned.
 
If enabled campaigns do not exist, an empty array is returned.
Line 37: Line 34:
  
  
<center>[[list-management-api-specification/GeneralInformation|< Previous]]  |  [[list-management-api-specification/Addarecord|Next >]]</center>
+
 
 
</translate>
 
</translate>

Latest revision as of 22:44, 17 September 2018

• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Get campaigns

This returns the list of enabled campaigns, their current states, and calling lists associated with such campaigns.

URL

http[s]://<host>/admin/ws/t/<tenant_url>/campaign/getAll/

Method

GET

Returns

200 – Names of campaigns with current states and associated calling lists (content type: application/json)

Example

[
{
"name": "CAMPAIGN1",
"lists": ["LIST1", "LIST2"],
"state": “RUNNING”
},
…
]

If enabled campaigns do not exist, an empty array is returned.

Errors

400 – Bad request (missing mandatory fields or incorrect format)

401 – Authentication failed

403 – Authentication succeeded, but authorization failed (no privileges)



< Previous | Next >