Description
Adds ONE record to a data set. The data set is defined using RelatedDataFilter.
POST [REST URL]/relatedData/createRecord
Example body
{ "datasetName": "products", "key": "testuser@domain.com", "data": [ { "name": "productname", "value": "bicycle" }, { "name": "quantity", "value": "1" } ] }
Successful response
HTTP 204
Error response
{ "errorActor": "CLIENT", "errorCode": "NO_SUCH_OBJECT", "message": "RelatedDataList with dataSetName=products does not exist.", "objectType": "RelatedDataList", "propertyName": "dataSetName", "propertyValue": "myproducts" }
{ "errorActor": "CLIENT", "errorCode": "UNEXPECTED_ERROR", "message": "com.ecircle.das.DASSystemException: No columns to insert in dataset products", "errorId": null }