POST api/Import/SavePresets
Saving import presets for the current users
Request Information
URI Parameters
None.
Body Parameters
Import presets
Collection of MetadataPreset| Name | Description | Type | Additional information |
|---|---|---|---|
| Name |
Name |
string |
None. |
| HotKey | integer |
None. |
|
| Items |
Items |
Collection of MetadataPresetItem |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"name": "sample string 1",
"hotKey": 2,
"items": [
{
"tagGuid": "1ffb0102-b174-4090-a9af-30efdd361d37",
"values": [
{
"value": "sample string 1",
"default": true
},
{
"value": "sample string 1",
"default": true
}
],
"value": "sample string 2",
"checked": true
},
{
"tagGuid": "1ffb0102-b174-4090-a9af-30efdd361d37",
"values": [
{
"value": "sample string 1",
"default": true
},
{
"value": "sample string 1",
"default": true
}
],
"value": "sample string 2",
"checked": true
}
]
},
{
"name": "sample string 1",
"hotKey": 2,
"items": [
{
"tagGuid": "1ffb0102-b174-4090-a9af-30efdd361d37",
"values": [
{
"value": "sample string 1",
"default": true
},
{
"value": "sample string 1",
"default": true
}
],
"value": "sample string 2",
"checked": true
},
{
"tagGuid": "1ffb0102-b174-4090-a9af-30efdd361d37",
"values": [
{
"value": "sample string 1",
"default": true
},
{
"value": "sample string 1",
"default": true
}
],
"value": "sample string 2",
"checked": true
}
]
}
]
Response Information
Resource Description
Result containing the flag of successful operation
ObjResultOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | boolean |
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": true,
"error": "sample string 2",
"success": true,
"errorCode": 4
}
Parameter Information
presets
| Property | Description |
|---|---|
| Length (Int32) | |
| LongLength (Int64) | |
| Rank (Int32) | |
| SyncRoot (Object) | |
| IsReadOnly (Boolean) | |
| IsFixedSize (Boolean) | |
| IsSynchronized (Boolean) |