Edits a transaction-to-cache mapping.
Syntax: POST /api/Application/EditTransactionMapping/{appName}/{transName}
{appName} indicates the application name, for example, salesdemo_cloud.
{transName} indicates the transaction object to be edited, for example, sqlca1.
PowerScript code example:
Integer li_rc String ls_body , ls_requestbody httpclient lhc_client lhc_client = create httpclient lhc_client.setrequestheader("Content-Type", "application/json;charset=UTF-8",true) ls_requestbody='{"cachename":"salestest"}' li_rc = lhc_client.sendrequest( "Post", "http://172.25.100.32:5000/api/Application/EditTransactionMapping/salesdemo_cloud/sqlca1", ls_requestbody) if li_rc = 1 and lhc_client.getresponsestatuscode( ) = 200 then lhc_client.getrequestbody(ls_body) end if
When successful, it returns the response status code 200 and the following response body:
When failed, it returns 400 (bad request), 401 (unauthorized), or 500 (server error).
{ "isSucceeded": true, "errorMessage": "string" }