POST api/campaigns/render/{id}/{key}

Renders a campaign against a key using the given xml.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The id of the campaign to render.

globally unique identifier

Required

key

The key to render the campaign against.

string

Required

Body Parameters

The xml of the campaign to render.

TemplateCampaignXmlDto
NameDescriptionTypeAdditional information
CampaignPreviewXmlDocument

XDocument

None.

CampaignProofXmlDocument

XDocument

None.

Request Formats

application/json, text/json

Sample:
{
  "CampaignPreviewXmlDocument": {},
  "CampaignProofXmlDocument": {}
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Xml.Linq.XDeclaration' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Xml.Linq.XDeclaration' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TemplateCampaignXmlDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.