Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Create a new email message

HTTP Method

POST

URL

Code Block
titleCreate a message
https://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/List/{id_List}/Email

JSON request (example)

Expand
titleEnable dynamic fields defining at least one of them: click here to expand...
Code Block
{
	"Subject":"Monthly Newsletter 4",
	"Content":"Hello world",
	"Embed":false,
	"Fields":[
		{
			"Description":"Country",
			"Id":8,
			"Value":"USA"
		}
	],
	"IsConfirmation":false,
	"Notes":"Issue n. 5",
	"Tags":null,
	"TrackingInfo": {
		"CustomParams":"",
		"Enabled":true,
		"Protocols":["http:","https:","ftp:","news:"]
	}
}
Expand
titleEnable dynamic fields using UseDynamicFields field: click here to expand...
Code Block
{
	"Subject": "LaMonthly Newsletter prova4",
	"IsConfirmation": false,
	"Content": "nothing here",
	"Notes": "notes",
	"UseDynamicField": true,
	"Embed": false,
	"PreHeader": "",
	"TrackingInfo":
	{
		"CustomParams": "",
		"Enabled": false,
		"Protocols": []
	}
}
Expand
titleLeave dynamic fields disabled: click here to expand...
Code Block
{
	"Subject": "Monthly Newsletter 4",
	"IsConfirmation": false,
	"Content": "nothing here",
	"Notes": "notes",
	"UseDynamicField": false,
	"Embed": false,
	"PreHeader": "",
	"TrackingInfo":
	{
		"CustomParams": "",
		"Enabled": false,
		"Protocols": []
	}
}

JSON response (example)

Code Block
{  "CreationDate": "2016-09-16 15:57:35Z", "Notes": "", "Subject": "Monthly Newsletter 4",  "idList": 2, "idMessage": 1060 }

 

 

Paging and filtering (example)

 

 

...