POST api/Import/ImportFiles

Import of files by direct links, only within the local network and by network paths

Request Information

URI Parameters

None.

Body Parameters

List of files for importing

ImportPaths
NameDescriptionTypeAdditional information
Paths

List of files paths. When importing files within the local network - file paths. When importing files from dropbox - list of URLs of files in Dropbox.

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "paths": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ImportPaths xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <Paths xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Paths>
</ImportPaths>

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

Response Information

Resource Description

Returns import ID

ObjResultOfString
NameDescriptionTypeAdditional information
Data

string

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": "sample string 1",
  "error": "sample string 2",
  "success": true,
  "errorCode": 4
}

application/xml, text/xml

Sample:
<ObjResultOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>4</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 2</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data>sample string 1</Data>
</ObjResultOfstring>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

data

List of files paths.

Property Description
Paths (String[])
            List of files paths. When importing files within the local network - file paths.
            When importing files from dropbox - list of URLs of files in Dropbox.
            
}