From Bright Pattern Documentation
< 3.15:List-management-api-specification
Revision as of 17:57, 30 May 2017 by Tracy (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

This 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, 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 >
< Previous | Next >