From Bright Pattern Documentation
< 5.2:List-management-api-specification
Revision as of 04:32, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
Get Campaigns
This method returns the list of enabled campaigns and the calling lists currently associated with such campaigns. It does not return any disabled campaigns.
Request
URL
http[s]://<host>/configapi/v2/campaign/getAll/
Method
GET
Body Content Type
JSON object, or an empty array if there are no enabled campaigns
Body
Empty
Result
[ { "name": "CAMPAIGN1", "lists": ["LIST1", "LIST2"], "state": “RUNNING” }, … ]
Notes
An empty array can be returned if there are no enabled campaigns.
Response Codes
Code | Description |
200 | Success |
400 | Bad request (missing required fields or format not understood) |
401 | Authentication failed |
403 | User authenticated but does not have sufficient privileges |