Reference for http://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/ContentProvider/Sources/{ID_SOURCE}/Content

Add or update a content.

Url: http://services.mailup.com/API/v1.1/Rest/ConsoleService.svc/Console/ContentProvider/Sources/{ID_SOURCE}/Content

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Request Json Example
Response Xml Example,Schema
Response Json Example

The following is an example request Xml body:

<UpdateSourceContentsItem xmlns="http://MailupSoa.Ws.Schema.API.Console">
  <Items>
    <ContentItem>
      <Authors>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
      </Authors>
      <Categories>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
      </Categories>
      <ContentDate>String content</ContentDate>
      <ContentKey>String content</ContentKey>
      <CustomFields>
        <ContentCustomFieldsItem>
          <Name>String content</Name>
          <Value>String content</Value>
        </ContentCustomFieldsItem>
        <ContentCustomFieldsItem>
          <Name>String content</Name>
          <Value>String content</Value>
        </ContentCustomFieldsItem>
      </CustomFields>
      <Image>String content</Image>
      <LinkText>String content</LinkText>
      <LinkURL>String content</LinkURL>
      <SubTitle>String content</SubTitle>
      <Summary>String content</Summary>
      <Title>String content</Title>
    </ContentItem>
    <ContentItem>
      <Authors>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
      </Authors>
      <Categories>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
        <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">String content</string>
      </Categories>
      <ContentDate>String content</ContentDate>
      <ContentKey>String content</ContentKey>
      <CustomFields>
        <ContentCustomFieldsItem>
          <Name>String content</Name>
          <Value>String content</Value>
        </ContentCustomFieldsItem>
        <ContentCustomFieldsItem>
          <Name>String content</Name>
          <Value>String content</Value>
        </ContentCustomFieldsItem>
      </CustomFields>
      <Image>String content</Image>
      <LinkText>String content</LinkText>
      <LinkURL>String content</LinkURL>
      <SubTitle>String content</SubTitle>
      <Summary>String content</Summary>
      <Title>String content</Title>
    </ContentItem>
  </Items>
  <UploadMode>2147483647</UploadMode>
</UpdateSourceContentsItem>

The following is an example request Json body:

{
	"Items":[{
		"Authors":["String content"],
		"Categories":["String content"],
		"ContentDate":"String content",
		"ContentKey":"String content",
		"CustomFields":[{
			"Name":"String content",
			"Value":"String content"
		}],
		"Image":"String content",
		"LinkText":"String content",
		"LinkURL":"String content",
		"SubTitle":"String content",
		"Summary":"String content",
		"Title":"String content"
	}],
	"UploadMode":2147483647
}

The following is an example response Xml body:

<ContentUploadResultItem xmlns="http://MailupSoa.Ws.Schema.API.Console">
  <IdActivity>9223372036854775807</IdActivity>
</ContentUploadResultItem>

The following is an example response Json body:

{
	"IdActivity":9223372036854775807
}

The following is the request Xml Schema:

<xs:schema xmlns:tns="http://MailupSoa.Ws.Schema.API.Console" elementFormDefault="qualified" targetNamespace="http://MailupSoa.Ws.Schema.API.Console" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import namespace="http://MailupSoa.Ws.API.Schema" />
  <xs:complexType name="UpdateSourceContentsItem">
    <xs:sequence>
      <xs:element minOccurs="0" name="Items" nillable="true" type="tns:ArrayOfContentItem" />
      <xs:element minOccurs="0" name="UploadMode" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="UpdateSourceContentsItem" nillable="true" type="tns:UpdateSourceContentsItem" />
  <xs:complexType name="ArrayOfContentItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ContentItem" nillable="true" type="tns:ContentItem" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfContentItem" nillable="true" type="tns:ArrayOfContentItem" />
  <xs:complexType name="ContentItem">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://MailupSoa.Ws.API.Schema" base="q1:BaseDataContract">
        <xs:sequence>
          <xs:element minOccurs="0" name="Authors" nillable="true" xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" type="q2:ArrayOfstring" />
          <xs:element minOccurs="0" name="Categories" nillable="true" xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" type="q3:ArrayOfstring" />
          <xs:element minOccurs="0" name="ContentDate" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="ContentKey" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="CustomFields" nillable="true" type="tns:ArrayOfContentCustomFieldsItem" />
          <xs:element minOccurs="0" name="Image" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="LinkText" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="LinkURL" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="SubTitle" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Summary" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Title" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ContentItem" nillable="true" type="tns:ContentItem" />
  <xs:complexType name="ArrayOfContentCustomFieldsItem">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="ContentCustomFieldsItem" nillable="true" type="tns:ContentCustomFieldsItem" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfContentCustomFieldsItem" nillable="true" type="tns:ArrayOfContentCustomFieldsItem" />
  <xs:complexType name="ContentCustomFieldsItem">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q4="http://MailupSoa.Ws.API.Schema" base="q4:BaseDataContract">
        <xs:sequence>
          <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="Value" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ContentCustomFieldsItem" nillable="true" type="tns:ContentCustomFieldsItem" />
</xs:schema>

Additional request Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<xs:schema xmlns:tns="http://MailupSoa.Ws.API.Schema" elementFormDefault="qualified" targetNamespace="http://MailupSoa.Ws.API.Schema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="BaseDataContract">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="BaseDataContract" nillable="true" type="tns:BaseDataContract" />
</xs:schema>

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/Arrays" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="ArrayOfstring">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfstring" nillable="true" type="tns:ArrayOfstring" />
</xs:schema>

<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>

The following is the response Xml Schema:

<xs:schema xmlns:tns="http://MailupSoa.Ws.Schema.API.Console" elementFormDefault="qualified" targetNamespace="http://MailupSoa.Ws.Schema.API.Console" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import namespace="http://MailupSoa.Ws.API.Schema" />
  <xs:complexType name="ContentUploadResultItem">
    <xs:complexContent mixed="false">
      <xs:extension xmlns:q1="http://MailupSoa.Ws.API.Schema" base="q1:BaseDataContract">
        <xs:sequence>
          <xs:element name="IdActivity" type="xs:long" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="ContentUploadResultItem" nillable="true" type="tns:ContentUploadResultItem" />
</xs:schema>

Additional response Xml Schemas:

<xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="anyType" nillable="true" type="xs:anyType" />
  <xs:element name="anyURI" nillable="true" type="xs:anyURI" />
  <xs:element name="base64Binary" nillable="true" type="xs:base64Binary" />
  <xs:element name="boolean" nillable="true" type="xs:boolean" />
  <xs:element name="byte" nillable="true" type="xs:byte" />
  <xs:element name="dateTime" nillable="true" type="xs:dateTime" />
  <xs:element name="decimal" nillable="true" type="xs:decimal" />
  <xs:element name="double" nillable="true" type="xs:double" />
  <xs:element name="float" nillable="true" type="xs:float" />
  <xs:element name="int" nillable="true" type="xs:int" />
  <xs:element name="long" nillable="true" type="xs:long" />
  <xs:element name="QName" nillable="true" type="xs:QName" />
  <xs:element name="short" nillable="true" type="xs:short" />
  <xs:element name="string" nillable="true" type="xs:string" />
  <xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" />
  <xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" />
  <xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" />
  <xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" />
  <xs:element name="char" nillable="true" type="tns:char" />
  <xs:simpleType name="char">
    <xs:restriction base="xs:int" />
  </xs:simpleType>
  <xs:element name="duration" nillable="true" type="tns:duration" />
  <xs:simpleType name="duration">
    <xs:restriction base="xs:duration">
      <xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" />
      <xs:minInclusive value="-P10675199DT2H48M5.4775808S" />
      <xs:maxInclusive value="P10675199DT2H48M5.4775807S" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="guid" nillable="true" type="tns:guid" />
  <xs:simpleType name="guid">
    <xs:restriction base="xs:string">
      <xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:attribute name="FactoryType" type="xs:QName" />
  <xs:attribute name="Id" type="xs:ID" />
  <xs:attribute name="Ref" type="xs:IDREF" />
</xs:schema>

<xs:schema xmlns:tns="http://MailupSoa.Ws.API.Schema" elementFormDefault="qualified" targetNamespace="http://MailupSoa.Ws.API.Schema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="BaseDataContract">
    <xs:sequence />
  </xs:complexType>
  <xs:element name="BaseDataContract" nillable="true" type="tns:BaseDataContract" />
</xs:schema>

<xs:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="schema">
    <xs:complexType />
  </xs:element>
</xs:schema>