POST api/Settings/CreateActionSet

Request Information

URI Parameters

None.

Body Parameters

ActionSet
NameDescriptionTypeAdditional information
Guid

globally unique identifier

None.

Name

string

None.

Params

ActionSetParams

None.

Format

string

None.

Enabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "guid": "facf6b7a-a1b6-45cd-b217-5cc419ddbd04",
  "name": "sample string 2",
  "params": {
    "resizing": {
      "outputWidth": 1.1,
      "outputHeight": 2.1,
      "outputSizeInPercents": 3.1,
      "resizeUnit": 0,
      "subSampleOnly": true,
      "dpi": 5
    },
    "watermark": {
      "watermarkGuid": "5951bb92-4aab-4041-9323-7c2d89248561",
      "embedWatermark": {
        "padding": "3, 5, 4, 2",
        "data": "QEA=",
        "scale": true,
        "opacity": 64,
        "position": 3
      }
    },
    "converting": {
      "outputFormatGuid": "f203f6ec-7212-4cf6-aa59-010ba35be01a",
      "iccProfile": 2,
      "jpeG_Quality": 3
    },
    "metadata": {
      "embeddingMethod": 1,
      "excludeTagSpecGuids": "sample string 2",
      "includeSynonyms": true,
      "flatterKeywords": true,
      "getExcludeTagSpecHashes": {}
    }
  },
  "format": "sample string 3",
  "enabled": true,
  "hasChanged": true,
  "initialParamsHashCode": 6
}

application/xml, text/xml

Sample:
<ActionSet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing">
  <_x003C_Enabled_x003E_k__BackingField>true</_x003C_Enabled_x003E_k__BackingField>
  <_x003C_HasChanged_x003E_k__BackingField>true</_x003C_HasChanged_x003E_k__BackingField>
  <_x003C_InitialParamsHashCode_x003E_k__BackingField>6</_x003C_InitialParamsHashCode_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField i:nil="true" />
  <_x003C_Params_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing.Export" i:nil="true" />
  <_x003C_Format_x003E_k__BackingField>sample string 3</_x003C_Format_x003E_k__BackingField>
  <_x003C_Guid_x003E_k__BackingField>facf6b7a-a1b6-45cd-b217-5cc419ddbd04</_x003C_Guid_x003E_k__BackingField>
  <_x003C_Name_x003E_k__BackingField>sample string 2</_x003C_Name_x003E_k__BackingField>
  <_x003C_Params_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing.Export">
    <d2p1:_x003C_Converting_x003E_k__BackingField>
      <d2p1:_x003C_ICCProfile_x003E_k__BackingField>2</d2p1:_x003C_ICCProfile_x003E_k__BackingField>
      <d2p1:_x003C_JPEG_Quality_x003E_k__BackingField>3</d2p1:_x003C_JPEG_Quality_x003E_k__BackingField>
      <d2p1:_x003C_OutputFormatGuid_x003E_k__BackingField>f203f6ec-7212-4cf6-aa59-010ba35be01a</d2p1:_x003C_OutputFormatGuid_x003E_k__BackingField>
    </d2p1:_x003C_Converting_x003E_k__BackingField>
    <d2p1:_x003C_Metadata_x003E_k__BackingField>
      <d2p1:PrevHash>1712525225</d2p1:PrevHash>
      <d2p1:_x003C_EmbeddingMethod_x003E_k__BackingField>1</d2p1:_x003C_EmbeddingMethod_x003E_k__BackingField>
      <d2p1:_x003C_ExcludeTagSpecGuids_x003E_k__BackingField>sample string 2</d2p1:_x003C_ExcludeTagSpecGuids_x003E_k__BackingField>
      <d2p1:_x003C_FlatterKeywords_x003E_k__BackingField>true</d2p1:_x003C_FlatterKeywords_x003E_k__BackingField>
      <d2p1:_x003C_IncludeSynonyms_x003E_k__BackingField>true</d2p1:_x003C_IncludeSynonyms_x003E_k__BackingField>
      <d2p1:excludeTagSpecs xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
    </d2p1:_x003C_Metadata_x003E_k__BackingField>
    <d2p1:_x003C_Resizing_x003E_k__BackingField>
      <d2p1:_x003C_DPI_x003E_k__BackingField>5</d2p1:_x003C_DPI_x003E_k__BackingField>
      <d2p1:_x003C_OutputHeight_x003E_k__BackingField>2.1</d2p1:_x003C_OutputHeight_x003E_k__BackingField>
      <d2p1:_x003C_OutputSizeInPercents_x003E_k__BackingField>3.1</d2p1:_x003C_OutputSizeInPercents_x003E_k__BackingField>
      <d2p1:_x003C_OutputWidth_x003E_k__BackingField>1.1</d2p1:_x003C_OutputWidth_x003E_k__BackingField>
      <d2p1:_x003C_ResizeUnit_x003E_k__BackingField>Pixels</d2p1:_x003C_ResizeUnit_x003E_k__BackingField>
      <d2p1:_x003C_SubSampleOnly_x003E_k__BackingField>true</d2p1:_x003C_SubSampleOnly_x003E_k__BackingField>
    </d2p1:_x003C_Resizing_x003E_k__BackingField>
    <d2p1:_x003C_Watermark_x003E_k__BackingField>
      <d2p1:_x003C_EmbedWatermark_x003E_k__BackingField xmlns:d4p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common">
        <d4p1:Padding xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Windows.Forms">
          <d5p1:_all>false</d5p1:_all>
          <d5p1:_bottom>2</d5p1:_bottom>
          <d5p1:_left>3</d5p1:_left>
          <d5p1:_right>4</d5p1:_right>
          <d5p1:_top>5</d5p1:_top>
        </d4p1:Padding>
        <d4p1:_x003C_Data_x003E_k__BackingField>QEA=</d4p1:_x003C_Data_x003E_k__BackingField>
        <d4p1:_x003C_Opacity_x003E_k__BackingField>64</d4p1:_x003C_Opacity_x003E_k__BackingField>
        <d4p1:_x003C_Position_x003E_k__BackingField>3</d4p1:_x003C_Position_x003E_k__BackingField>
        <d4p1:_x003C_Scale_x003E_k__BackingField>true</d4p1:_x003C_Scale_x003E_k__BackingField>
      </d2p1:_x003C_EmbedWatermark_x003E_k__BackingField>
      <d2p1:_x003C_WatermarkGuid_x003E_k__BackingField>5951bb92-4aab-4041-9323-7c2d89248561</d2p1:_x003C_WatermarkGuid_x003E_k__BackingField>
    </d2p1:_x003C_Watermark_x003E_k__BackingField>
  </_x003C_Params_x003E_k__BackingField>
</ActionSet>

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 'ActionSet'.

Response Information

Resource Description

ObjResultOfActionSet
NameDescriptionTypeAdditional information
Data

ActionSet

None.

Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "guid": "3ddec858-1812-4a84-9a03-416a11689a94",
    "name": "sample string 2",
    "params": {
      "resizing": {
        "outputWidth": 1.1,
        "outputHeight": 2.1,
        "outputSizeInPercents": 3.1,
        "resizeUnit": 0,
        "subSampleOnly": true,
        "dpi": 5
      },
      "watermark": {
        "watermarkGuid": "cfb26668-0351-4213-badd-fd8ff491771b",
        "embedWatermark": {
          "padding": "3, 5, 4, 2",
          "data": "QEA=",
          "scale": true,
          "opacity": 64,
          "position": 3
        }
      },
      "converting": {
        "outputFormatGuid": "8e9b5831-699b-48b8-9e8b-449a67beb99c",
        "iccProfile": 2,
        "jpeG_Quality": 3
      },
      "metadata": {
        "embeddingMethod": 1,
        "excludeTagSpecGuids": "sample string 2",
        "includeSynonyms": true,
        "flatterKeywords": true,
        "getExcludeTagSpecHashes": {}
      }
    },
    "format": "sample string 3",
    "enabled": true,
    "hasChanged": true,
    "initialParamsHashCode": 6
  },
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<ObjResultOfActionSet1vgs5xgY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing">
    <d2p1:_x003C_Enabled_x003E_k__BackingField>true</d2p1:_x003C_Enabled_x003E_k__BackingField>
    <d2p1:_x003C_HasChanged_x003E_k__BackingField>true</d2p1:_x003C_HasChanged_x003E_k__BackingField>
    <d2p1:_x003C_InitialParamsHashCode_x003E_k__BackingField>6</d2p1:_x003C_InitialParamsHashCode_x003E_k__BackingField>
    <d2p1:_x003C_Name_x003E_k__BackingField i:nil="true" />
    <d2p1:_x003C_Params_x003E_k__BackingField xmlns:d3p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing.Export" i:nil="true" />
    <d2p1:_x003C_Format_x003E_k__BackingField>sample string 3</d2p1:_x003C_Format_x003E_k__BackingField>
    <d2p1:_x003C_Guid_x003E_k__BackingField>3ddec858-1812-4a84-9a03-416a11689a94</d2p1:_x003C_Guid_x003E_k__BackingField>
    <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField>
    <d2p1:_x003C_Params_x003E_k__BackingField xmlns:d3p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common.MediaProcessing.Export">
      <d3p1:_x003C_Converting_x003E_k__BackingField>
        <d3p1:_x003C_ICCProfile_x003E_k__BackingField>2</d3p1:_x003C_ICCProfile_x003E_k__BackingField>
        <d3p1:_x003C_JPEG_Quality_x003E_k__BackingField>3</d3p1:_x003C_JPEG_Quality_x003E_k__BackingField>
        <d3p1:_x003C_OutputFormatGuid_x003E_k__BackingField>8e9b5831-699b-48b8-9e8b-449a67beb99c</d3p1:_x003C_OutputFormatGuid_x003E_k__BackingField>
      </d3p1:_x003C_Converting_x003E_k__BackingField>
      <d3p1:_x003C_Metadata_x003E_k__BackingField>
        <d3p1:PrevHash>1712525225</d3p1:PrevHash>
        <d3p1:_x003C_EmbeddingMethod_x003E_k__BackingField>1</d3p1:_x003C_EmbeddingMethod_x003E_k__BackingField>
        <d3p1:_x003C_ExcludeTagSpecGuids_x003E_k__BackingField>sample string 2</d3p1:_x003C_ExcludeTagSpecGuids_x003E_k__BackingField>
        <d3p1:_x003C_FlatterKeywords_x003E_k__BackingField>true</d3p1:_x003C_FlatterKeywords_x003E_k__BackingField>
        <d3p1:_x003C_IncludeSynonyms_x003E_k__BackingField>true</d3p1:_x003C_IncludeSynonyms_x003E_k__BackingField>
        <d3p1:excludeTagSpecs xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
      </d3p1:_x003C_Metadata_x003E_k__BackingField>
      <d3p1:_x003C_Resizing_x003E_k__BackingField>
        <d3p1:_x003C_DPI_x003E_k__BackingField>5</d3p1:_x003C_DPI_x003E_k__BackingField>
        <d3p1:_x003C_OutputHeight_x003E_k__BackingField>2.1</d3p1:_x003C_OutputHeight_x003E_k__BackingField>
        <d3p1:_x003C_OutputSizeInPercents_x003E_k__BackingField>3.1</d3p1:_x003C_OutputSizeInPercents_x003E_k__BackingField>
        <d3p1:_x003C_OutputWidth_x003E_k__BackingField>1.1</d3p1:_x003C_OutputWidth_x003E_k__BackingField>
        <d3p1:_x003C_ResizeUnit_x003E_k__BackingField>Pixels</d3p1:_x003C_ResizeUnit_x003E_k__BackingField>
        <d3p1:_x003C_SubSampleOnly_x003E_k__BackingField>true</d3p1:_x003C_SubSampleOnly_x003E_k__BackingField>
      </d3p1:_x003C_Resizing_x003E_k__BackingField>
      <d3p1:_x003C_Watermark_x003E_k__BackingField>
        <d3p1:_x003C_EmbedWatermark_x003E_k__BackingField xmlns:d5p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.Common">
          <d5p1:Padding xmlns:d6p1="http://schemas.datacontract.org/2004/07/System.Windows.Forms">
            <d6p1:_all>false</d6p1:_all>
            <d6p1:_bottom>2</d6p1:_bottom>
            <d6p1:_left>3</d6p1:_left>
            <d6p1:_right>4</d6p1:_right>
            <d6p1:_top>5</d6p1:_top>
          </d5p1:Padding>
          <d5p1:_x003C_Data_x003E_k__BackingField>QEA=</d5p1:_x003C_Data_x003E_k__BackingField>
          <d5p1:_x003C_Opacity_x003E_k__BackingField>64</d5p1:_x003C_Opacity_x003E_k__BackingField>
          <d5p1:_x003C_Position_x003E_k__BackingField>3</d5p1:_x003C_Position_x003E_k__BackingField>
          <d5p1:_x003C_Scale_x003E_k__BackingField>true</d5p1:_x003C_Scale_x003E_k__BackingField>
        </d3p1:_x003C_EmbedWatermark_x003E_k__BackingField>
        <d3p1:_x003C_WatermarkGuid_x003E_k__BackingField>cfb26668-0351-4213-badd-fd8ff491771b</d3p1:_x003C_WatermarkGuid_x003E_k__BackingField>
      </d3p1:_x003C_Watermark_x003E_k__BackingField>
    </d2p1:_x003C_Params_x003E_k__BackingField>
  </Data>
</ObjResultOfActionSet1vgs5xgY>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

value

Property Description
Guid (Guid)

				
Name (String)

				
Params (ActionSetParams)

				
Format (String)

				
Enabled (Boolean)

				
HasChanged (Boolean)

				
InitialParamsHashCode (Int32)

				
}