Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisPersistSite

int ctMemphisPersistSite( pRCESJson request, ppRCESJson result )

Description:

Persist a Site into the Replication Manager Database. If it doesn't exist, create it, otherwise updated it. In order to create a new one, the id must be -1 or not passed. And the update will be done by the ID.

HTTP URL: <baseURL>/ctMemphisPersistSite/

HTTP Verb: POST

Constraints:

  • "name" is not NULL, not EMPTY and Unique.

Parameters:

  • request [IN] - Persist Site request in JSON format. For example:

{

"site": {

"id": 1, // optional, must be an

existing ID for update

"name": "site1", // required

"type": "local", // optional

"description": "site 1 description" // optional

}

}

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

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

}

}

Return:

Error code

TOCIndex