EMUN1 ASP.NET

<back to all web services

CreateMedia

Requires Authentication
The following routes are available for this service:
All Verbs/service/CreateMedia
All Verbs/service/cm/{NotifySubscription}
CreateMedia Parameters:
NameParameterData TypeRequiredDescription
NotifySubscriptionpathstringNo
IgnoreUploadsqueryboolNo
UrlsqueryList<string>No
DataUrlsqueryList<string>No
FilesqueryJsonArrayObjectsNo
TagsqueryDictionary<string, HashSet<String>>No
Media Parameters:
NameParameterData TypeRequiredDescription
PredecessorIdformint?No
ReplacePredecessorformboolNo
ContentTypeformstringNo
PredecessorformMediaNo
RealmformstringNo
HeightformdoubleNo
WidthformdoubleNo
AreaformdoubleNo
ContentLengthformdoubleNo
ClientIdformstringNo
UrlformstringNo
OriginalUrlformstringNo
ImagesformDictionary<string, string>No
KeyformstringNo
TaggedEntity Parameters:
NameParameterData TypeRequiredDescription
TagsformDictionary<string, HashSet<String>>No
EntityXL Parameters:
NameParameterData TypeRequiredDescription
RefIdformstringNo
RatingformdoubleNo
RestrictedformboolNo
EntityLG Parameters:
NameParameterData TypeRequiredDescription
DescriptionformstringNo
EntityMD Parameters:
NameParameterData TypeRequiredDescription
LabelformstringNo
NameformstringNo
TitleformstringNo
ActiveformboolNo
EntitySM Parameters:
NameParameterData TypeRequiredDescription
EuidformGuidNo
EntityXS Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
EntityXS<T> Parameters:
NameParameterData TypeRequiredDescription
IdformTNo
CreatedByformstringNo
CreatedOnformDateTimeNo
LastModifiedOnformDateTimeNo
LastModifiedByformstringNo
PositionformintNo
MediaCreated Parameters:
NameParameterData TypeRequiredDescription
MediaformList<Media>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /service/CreateMedia HTTP/1.1 
Host: www.bernhardthospitality.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
  <CreatedBy>String</CreatedBy>
  <CreatedOn>0001-01-01T00:00:00</CreatedOn>
  <Id>0</Id>
  <LastModifiedBy>String</LastModifiedBy>
  <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
  <Position>0</Position>
  <Euid>00000000-0000-0000-0000-000000000000</Euid>
  <Active>false</Active>
  <Label>String</Label>
  <Name i:nil="true" />
  <Title i:nil="true" />
  <Description>String</Description>
  <Rating>0</Rating>
  <RefId>String</RefId>
  <Restricted>false</Restricted>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <d2p1:string>String</d2p1:string>
      </d2p1:Value>
    </d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
  </Tags>
  <Area>0</Area>
  <ClientId>String</ClientId>
  <ContentLength>0</ContentLength>
  <ContentType>String</ContentType>
  <Height>0</Height>
  <Images xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Key>String</Key>
  <OriginalUrl>String</OriginalUrl>
  <Predecessor>
    <CreatedBy>String</CreatedBy>
    <CreatedOn>0001-01-01T00:00:00</CreatedOn>
    <Id>0</Id>
    <LastModifiedBy>String</LastModifiedBy>
    <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
    <Position>0</Position>
    <Euid>00000000-0000-0000-0000-000000000000</Euid>
    <Active>false</Active>
    <Label>String</Label>
    <Name i:nil="true" />
    <Title i:nil="true" />
    <Description>String</Description>
    <Rating>0</Rating>
    <RefId>String</RefId>
    <Restricted>false</Restricted>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>
          <d3p1:string>String</d3p1:string>
        </d3p1:Value>
      </d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
    </Tags>
    <Area>0</Area>
    <ClientId>String</ClientId>
    <ContentLength>0</ContentLength>
    <ContentType>String</ContentType>
    <Height>0</Height>
    <Images xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <Key>String</Key>
    <OriginalUrl>String</OriginalUrl>
    <Predecessor>
      <CreatedBy>String</CreatedBy>
      <CreatedOn>0001-01-01T00:00:00</CreatedOn>
      <Id>0</Id>
      <LastModifiedBy>String</LastModifiedBy>
      <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
      <Position>0</Position>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Active>false</Active>
      <Label>String</Label>
      <Name i:nil="true" />
      <Title i:nil="true" />
      <Description>String</Description>
      <Rating>0</Rating>
      <RefId>String</RefId>
      <Restricted>false</Restricted>
      <Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>
            <d4p1:string>String</d4p1:string>
          </d4p1:Value>
        </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      </Tags>
      <Area>0</Area>
      <ClientId>String</ClientId>
      <ContentLength>0</ContentLength>
      <ContentType>String</ContentType>
      <Height>0</Height>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Key>String</Key>
      <OriginalUrl>String</OriginalUrl>
      <Predecessor>
        <CreatedBy>String</CreatedBy>
        <CreatedOn>0001-01-01T00:00:00</CreatedOn>
        <Id>0</Id>
        <LastModifiedBy>String</LastModifiedBy>
        <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
        <Position>0</Position>
        <Euid>00000000-0000-0000-0000-000000000000</Euid>
        <Active>false</Active>
        <Label>String</Label>
        <Name i:nil="true" />
        <Title i:nil="true" />
        <Description>String</Description>
        <Rating>0</Rating>
        <RefId>String</RefId>
        <Restricted>false</Restricted>
        <Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>
              <d5p1:string>String</d5p1:string>
            </d5p1:Value>
          </d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
        </Tags>
        <Area>0</Area>
        <ClientId>String</ClientId>
        <ContentLength>0</ContentLength>
        <ContentType>String</ContentType>
        <Height>0</Height>
        <Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <Key>String</Key>
        <OriginalUrl>String</OriginalUrl>
        <Predecessor i:nil="true" />
        <PredecessorId>0</PredecessorId>
        <Realm>String</Realm>
        <ReplacePredecessor>false</ReplacePredecessor>
        <Url>String</Url>
        <Width>0</Width>
      </Predecessor>
      <PredecessorId>0</PredecessorId>
      <Realm>String</Realm>
      <ReplacePredecessor>false</ReplacePredecessor>
      <Url>String</Url>
      <Width>0</Width>
    </Predecessor>
    <PredecessorId>0</PredecessorId>
    <Realm>String</Realm>
    <ReplacePredecessor>false</ReplacePredecessor>
    <Url>String</Url>
    <Width>0</Width>
  </Predecessor>
  <PredecessorId>0</PredecessorId>
  <Realm>String</Realm>
  <ReplacePredecessor>false</ReplacePredecessor>
  <Url>String</Url>
  <Width>0</Width>
  <DataUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </DataUrls>
  <Files xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:ArrayOfKeyValueOfstringstring>
      <d2p1:KeyValueOfstringstring>
        <d2p1:Key>String</d2p1:Key>
        <d2p1:Value>String</d2p1:Value>
      </d2p1:KeyValueOfstringstring>
    </d2p1:ArrayOfKeyValueOfstringstring>
  </Files>
  <IgnoreUploads>false</IgnoreUploads>
  <NotifySubscription>String</NotifySubscription>
  <Urls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Urls>
</CreateMedia>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MediaCreated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
  <Media>
    <Media>
      <CreatedBy>String</CreatedBy>
      <CreatedOn>0001-01-01T00:00:00</CreatedOn>
      <Id>0</Id>
      <LastModifiedBy>String</LastModifiedBy>
      <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
      <Position>0</Position>
      <Euid>00000000-0000-0000-0000-000000000000</Euid>
      <Active>false</Active>
      <Label>String</Label>
      <Name i:nil="true" />
      <Title i:nil="true" />
      <Description>String</Description>
      <Rating>0</Rating>
      <RefId>String</RefId>
      <Restricted>false</Restricted>
      <Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>
            <d4p1:string>String</d4p1:string>
          </d4p1:Value>
        </d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
      </Tags>
      <Area>0</Area>
      <ClientId>String</ClientId>
      <ContentLength>0</ContentLength>
      <ContentType>String</ContentType>
      <Height>0</Height>
      <Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
      <Key>String</Key>
      <OriginalUrl>String</OriginalUrl>
      <Predecessor>
        <CreatedBy>String</CreatedBy>
        <CreatedOn>0001-01-01T00:00:00</CreatedOn>
        <Id>0</Id>
        <LastModifiedBy>String</LastModifiedBy>
        <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
        <Position>0</Position>
        <Euid>00000000-0000-0000-0000-000000000000</Euid>
        <Active>false</Active>
        <Label>String</Label>
        <Name i:nil="true" />
        <Title i:nil="true" />
        <Description>String</Description>
        <Rating>0</Rating>
        <RefId>String</RefId>
        <Restricted>false</Restricted>
        <Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>
              <d5p1:string>String</d5p1:string>
            </d5p1:Value>
          </d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
        </Tags>
        <Area>0</Area>
        <ClientId>String</ClientId>
        <ContentLength>0</ContentLength>
        <ContentType>String</ContentType>
        <Height>0</Height>
        <Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
        <Key>String</Key>
        <OriginalUrl>String</OriginalUrl>
        <Predecessor>
          <CreatedBy>String</CreatedBy>
          <CreatedOn>0001-01-01T00:00:00</CreatedOn>
          <Id>0</Id>
          <LastModifiedBy>String</LastModifiedBy>
          <LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
          <Position>0</Position>
          <Euid>00000000-0000-0000-0000-000000000000</Euid>
          <Active>false</Active>
          <Label>String</Label>
          <Name i:nil="true" />
          <Title i:nil="true" />
          <Description>String</Description>
          <Rating>0</Rating>
          <RefId>String</RefId>
          <Restricted>false</Restricted>
          <Tags xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>
                <d6p1:string>String</d6p1:string>
              </d6p1:Value>
            </d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
          </Tags>
          <Area>0</Area>
          <ClientId>String</ClientId>
          <ContentLength>0</ContentLength>
          <ContentType>String</ContentType>
          <Height>0</Height>
          <Images xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
          <Key>String</Key>
          <OriginalUrl>String</OriginalUrl>
          <Predecessor i:nil="true" />
          <PredecessorId>0</PredecessorId>
          <Realm>String</Realm>
          <ReplacePredecessor>false</ReplacePredecessor>
          <Url>String</Url>
          <Width>0</Width>
        </Predecessor>
        <PredecessorId>0</PredecessorId>
        <Realm>String</Realm>
        <ReplacePredecessor>false</ReplacePredecessor>
        <Url>String</Url>
        <Width>0</Width>
      </Predecessor>
      <PredecessorId>0</PredecessorId>
      <Realm>String</Realm>
      <ReplacePredecessor>false</ReplacePredecessor>
      <Url>String</Url>
      <Width>0</Width>
    </Media>
  </Media>
</MediaCreated>