Product Documentation

FairCom Replication JSON RPC API

Previous Topic

Next Topic

ctMemphisSetDictionaryToPublication

int ctMemphisSetDictionaryToPublication( pRCESJson request, ppRCESJson result )

Description:

Set the publication for a specific database's dictionary (SQL or CTDB). Dictionary publication is exclusive for one single dictionary and can't be mixed with any other types of publications. All dictionary changes will be replicated, no filter are supported.

Constraints:

  • "id" must be an existing Publication ID;
  • "database" must be an existing Database ID;

Parameters:

  • request [IN] - Set Dictionary to Publication request in JSON format. For example:

{

"id": 27499,

"dictionaryRuleList": {

"database": 1

}

}

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

{

"success": true,

"error":

{

"errorCode": 0,

"message": "Success"

}

}

Return:

Error code

TOCIndex