Deleting information in xcenter through services
Hi,
We notice that xcenter has a Endpoint - DTX provided as a web service (xservice) explained in page 306 of document xstorepos-190-sg.pdf where the example shows how to persist a entinty onto the xcenter database using the REST web service:
POST Accepted media type is application/json. Service to save a DTX immediately. Example call: Call this method via REST like 1 > POST https://:/xcenter/rest/default/19/dtx 1 > Accept: application/json 1 > Authorization: 1 > Content-Type: application/xml { "Timeout": 1000, "persistables": [ [ { "v": 19, "type": "Item", "cmd": "INSERT", "recordtype": "dao" }, { "OrganizationId": 1, "ItemId": "1622", "CreateDate": 1526463366239, "OrgCode": "*", "OrgValue": "*", "Description": "FOOBARSTOOL", "SerializedItem": false, } ] ] }
My question is if it can be used to DELETE an existing record instead of inserting a new one as I can see a parameter named cmd (in example given it has the value INSERT "cmd": "INSERT").I am guessing that using a another value for CMD we can delete and update records, is it correct?