POST api/Import/SavePresets

Saving import presets for the current users

Request Information

URI Parameters

None.

Body Parameters

Import presets

Collection of MetadataPreset
NameDescriptionTypeAdditional 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": "adfcc0c6-ea5d-4331-8dad-ec2a50b61c24",
        "values": [
          {
            "value": "sample string 1",
            "default": true
          },
          {
            "value": "sample string 1",
            "default": true
          }
        ],
        "value": "sample string 2",
        "checked": true
      },
      {
        "tagGuid": "adfcc0c6-ea5d-4331-8dad-ec2a50b61c24",
        "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": "adfcc0c6-ea5d-4331-8dad-ec2a50b61c24",
        "values": [
          {
            "value": "sample string 1",
            "default": true
          },
          {
            "value": "sample string 1",
            "default": true
          }
        ],
        "value": "sample string 2",
        "checked": true
      },
      {
        "tagGuid": "adfcc0c6-ea5d-4331-8dad-ec2a50b61c24",
        "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
NameDescriptionTypeAdditional 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)