POST api/Settings/CreateActionSet
Creating an export preset
Request Information
URI Parameters
None.
Body Parameters
Export preset
ActionSet| Name | Description | Type | Additional information |
|---|---|---|---|
| Guid |
GUID |
globally unique identifier |
None. |
| Name |
Name |
string |
None. |
| Params |
Parameters |
ActionSetParams |
None. |
| Format |
Export file format |
string |
None. |
| Enabled |
Preset enabled flag |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"guid": "c51f833c-abbf-404f-b7af-354d105473f6",
"name": "sample string 2",
"params": {
"resizing": {
"outputWidth": 1.1,
"outputHeight": 2.1,
"outputSizeInPercents": 3.1,
"resizeUnit": 0,
"subSampleOnly": true,
"dpi": 5
},
"watermark": {
"watermarkGuid": "a6661942-4c26-4ec6-931e-c71489bcf791",
"embedWatermark": {
"padding": "3, 5, 4, 2",
"data": "QEA=",
"scale": true,
"opacity": 64,
"position": 3
}
},
"converting": {
"outputFormatGuid": "b04a5723-f313-4cc3-93da-a710ad2bf36e",
"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
}
Response Information
Resource Description
Result containing a created export preset
ObjResultOfActionSet| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | ActionSet |
None. |
|
| Error |
Error description |
string |
None. |
| Success |
Flag of successful operation |
boolean |
None. |
| ErrorCode |
Error code |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"guid": "f76f78bb-f1e0-4aac-8ebc-f1d09e8da3a0",
"name": "sample string 2",
"params": {
"resizing": {
"outputWidth": 1.1,
"outputHeight": 2.1,
"outputSizeInPercents": 3.1,
"resizeUnit": 0,
"subSampleOnly": true,
"dpi": 5
},
"watermark": {
"watermarkGuid": "ccc3cc15-266a-4e28-8650-08cc061701ff",
"embedWatermark": {
"padding": "3, 5, 4, 2",
"data": "QEA=",
"scale": true,
"opacity": 64,
"position": 3
}
},
"converting": {
"outputFormatGuid": "b33d9d1f-a339-44c2-996e-7ce6ca212fd9",
"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
}
Parameter Information
value
Export preset
| Property | Description |
|---|---|
| Guid (Guid) |
GUID |
| Name (String) |
Name |
| Params (ActionSetParams) |
Parameters |
| Format (String) |
Export file format |
| Enabled (Boolean) |
Preset enabled flag |
| HasChanged (Boolean) | |
| InitialParamsHashCode (Int32) |