POST transactions/file/add

Add file from remote storage if it doesn't exist

Request Information

Parameters

NameDescriptionAdditional information
inVO

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "updateId": "sample string 2",
    "type": 0,
    "data": "sample string 3",
    "fileServer": "sample string 4",
    "endpoint": "sample string 5",
    "status": 0,
    "addedOn": "sample string 6",
    "numOfRetries": 7,
    "note": "sample string 8",
    "overwriteIfExist": true
  },
  {
    "id": 1,
    "updateId": "sample string 2",
    "type": 0,
    "data": "sample string 3",
    "fileServer": "sample string 4",
    "endpoint": "sample string 5",
    "status": 0,
    "addedOn": "sample string 6",
    "numOfRetries": 7,
    "note": "sample string 8",
    "overwriteIfExist": true
  },
  {
    "id": 1,
    "updateId": "sample string 2",
    "type": 0,
    "data": "sample string 3",
    "fileServer": "sample string 4",
    "endpoint": "sample string 5",
    "status": 0,
    "addedOn": "sample string 6",
    "numOfRetries": 7,
    "note": "sample string 8",
    "overwriteIfExist": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfFileUpdateVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AiChinese.Distributed.VO">
  <FileUpdateVO>
    <AddedOn>sample string 6</AddedOn>
    <Data>sample string 3</Data>
    <Endpoint>sample string 5</Endpoint>
    <FileServer>sample string 4</FileServer>
    <Id>1</Id>
    <Note>sample string 8</Note>
    <NumOfRetries>7</NumOfRetries>
    <OverwriteIfExist>true</OverwriteIfExist>
    <Status>New</Status>
    <Type>AddFile</Type>
    <UpdateId>sample string 2</UpdateId>
  </FileUpdateVO>
  <FileUpdateVO>
    <AddedOn>sample string 6</AddedOn>
    <Data>sample string 3</Data>
    <Endpoint>sample string 5</Endpoint>
    <FileServer>sample string 4</FileServer>
    <Id>1</Id>
    <Note>sample string 8</Note>
    <NumOfRetries>7</NumOfRetries>
    <OverwriteIfExist>true</OverwriteIfExist>
    <Status>New</Status>
    <Type>AddFile</Type>
    <UpdateId>sample string 2</UpdateId>
  </FileUpdateVO>
  <FileUpdateVO>
    <AddedOn>sample string 6</AddedOn>
    <Data>sample string 3</Data>
    <Endpoint>sample string 5</Endpoint>
    <FileServer>sample string 4</FileServer>
    <Id>1</Id>
    <Note>sample string 8</Note>
    <NumOfRetries>7</NumOfRetries>
    <OverwriteIfExist>true</OverwriteIfExist>
    <Status>New</Status>
    <Type>AddFile</Type>
    <UpdateId>sample string 2</UpdateId>
  </FileUpdateVO>
</ArrayOfFileUpdateVO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "isDone": true,
  "code": 0,
  "message": "sample string 2",
  "cachedKey": "sample string 3",
  "correlationId": "2723f3fb-640e-45d4-9317-a49c7f82aacf",
  "data": {}
}

application/xml, text/xml

Sample:
<ApiResponseOfVoidOutVOFP0KSs_SV xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AiChinese.Internal.API">
  <CachedKey>sample string 3</CachedKey>
  <Code>None</Code>
  <CorrelationId>2723f3fb-640e-45d4-9317-a49c7f82aacf</CorrelationId>
  <IsDone>true</IsDone>
  <Message>sample string 2</Message>
</ApiResponseOfVoidOutVOFP0KSs_SV>