Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisPersistPublication

int ctMemphisPersistPublication( pRCESJson request, ppRCESJson result )

Description:

Persist a Publication into the Replication Manager Database. If it doesn't exist, create it, otherwise update it. 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>/ctMemphisPersistPublication/

HTTP Verb: POST

Constraints:

  • "name" is not NULL, not EMPTY and Unique per DBEngine.
  • "dbEngine" must be an existing DBEngine ID.
  • If "database" is provided, it must be an existing Database ID.

Parameters:

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

{

"publication": {

"id": -1, // optional, must be a existing ID for update

"name": "publication3", // required

"description": "General publication", // optional

"dbEngine": 3 // required

}

}

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

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

},

"id": 3

}

Return:

Error code

TOCIndex