Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisAddFilesToDatabase

int ctMemphisAddFilesToDatabase( pRCESJson request, ppRCESJson result )

Description:

Linking existing file(s) to a Database.

HTTP URL: <baseURL>/ctMemphisAddFilesToDatabase/

HTTP Verb: POST

Constraints:

  • "id" must be an existing Database ID.
  • All "fileList/file" must be existing File IDs.

Parameters:

  • request [IN] - Link Files to Database request in JSON format. For example:

{

"id": 0,

"fileList": [

{"file": 0},

{"file": 3},

{"file": 63},

{"file": 834}

]

}

  • result [OUT] - Result in JSON format. For example:

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

}

}

Return:

Error code

TOCIndex