From Bright Pattern Documentation
< 3.12:List-management-api-specification
Revision as of 02:02, 5 August 2016 by Sasha (talk | contribs) (Get campaigns)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Get campaigns

Description Returns the list of enabled campaigns, their current states, and calling lists associated with such campaigns.
URL http[s]://<host>:<port>/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, and 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 >
< Previous | Next >