POST api/WaterMark

Documentation for 'PostWaterMarkUrl'.

Request Information

Parameters

NameDescriptionAdditional information
entity
Documentation for 'entity'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Url": "sample string 1",
  "WaterMarkTexts": [
    {
      "Text": "sample string 1",
      "IsBold": 2
    },
    {
      "Text": "sample string 1",
      "IsBold": 2
    },
    {
      "Text": "sample string 1",
      "IsBold": 2
    }
  ],
  "Position": 2,
  "FontFamily": "sample string 3",
  "FontColor": "sample string 4",
  "FontSize": 5,
  "FontOpacity": 6,
  "UpdateDate": "2017-11-19T10:41:32.679125+08:00"
}

application/xml, text/xml

Sample:
<WaterMarkEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/T_CloudFile.Controllers">
  <FontColor>sample string 4</FontColor>
  <FontFamily>sample string 3</FontFamily>
  <FontOpacity>6</FontOpacity>
  <FontSize>5</FontSize>
  <Position>2</Position>
  <UpdateDate>2017-11-19T10:41:32.679125+08:00</UpdateDate>
  <Url>sample string 1</Url>
  <WaterMarkTexts>
    <WatermarkText>
      <IsBold>2</IsBold>
      <Text>sample string 1</Text>
    </WatermarkText>
    <WatermarkText>
      <IsBold>2</IsBold>
      <Text>sample string 1</Text>
    </WatermarkText>
    <WatermarkText>
      <IsBold>2</IsBold>
      <Text>sample string 1</Text>
    </WatermarkText>
  </WaterMarkTexts>
</WaterMarkEntity>

application/x-www-form-urlencoded

Sample:

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

Response Information

Response body formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>