Sources
Add a new source
Description | Create a new source. A source created using API is automatically visible on all MailUp lists and to all the users who have access to the Content area on the web application |
---|---|
HTTP Method | POST |
URL | |
JSON request (example) | SourceName is the text displayed on the web application. It does not have to be unique and you can change it later IsEnabled should be set to false if you want to avoid automatic campaigns to be triggered when this source is updated { "SourceName": "mySource", "IsEnabled": true } |
JSON response (example) | An error is returned if you set a null or empty SourceName. |
Paging and filtering (example) |
|
Get all available sources
Description | Read all the available sources At the moment there is not a method to filter by source name. You need to retrieve a list of items and parse it |
---|---|
HTTP Method | GET |
URL | |
JSON request (example) | none |
JSON response (example) | |
Paging and filtering (example) | Pagination GET /Console/ContentsProvider/Sources?pageSize={max_items} to limit the number of returned items. GET /Console/ContentsProvider/Sources?pageSize=1&pageNumber=1&orderby="UpdateDate ASC" to get the last modified item Sorting GET /Console/ContentsProvider/Sources?orderby="CreationDate DESC" you can sort by any of the parameters contained in the response object |
Update a source
Description | Update a source by changing its name or its status |
---|---|
HTTP Method | PUT |
URL | |
JSON request (example) | SourceName has to be unique. An error is returned if you leave it null or empty { "SourceName": "mySource", "IsEnabled": true } |
JSON response (example) | |
Paging and filtering (example) |
|
Remove a source
Description | Delete a source |
---|---|
HTTP Method | DELETE |
URL | |
JSON request (example) | none |
JSON response (example) | |
Paging and filtering (example) |
|
Content
Upload content
Description | Upload one or more content items |
---|---|
HTTP Method | POST |
URL | |
JSON request (example) |
|
JSON response (example) | |
Paging and filtering (example) |
|
Get content list
Description | Retrieve a list of content related to a source |
---|---|
HTTP Method | GET |
URL | |
JSON request (example) | none |
JSON response (example) | |
Paging and filtering (example) |
|
Remove content
Description | Delete content |
---|---|
HTTP Method | DELETE |
URL | |
JSON request (example) | none |
JSON response (example) | |
Paging and filtering (example) |
|