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