/relatedData/createRecord

Prev Next
Post
/relatedData/createRecord

Adds ONE record to a data set. The data to insert is defined in a JSON block submitted in the request body.
The JSON block must contain the dataset's name, the key value, and a data array of name and value elements. The name references the column in the related data set, and the value contains the data to be inserted into the corresponding columns.

datasetName (String, required) - Name of the related data set. All related data records reside within a data set identified by a unique name.
key (String, required) - Key defining which record(s) to select from the data set.
data (Attribute, optional) - An optional list of name, value pair.
Request body example:

{
"datasetName": "products",
"key": "testuser@domain.com",
"data": [
{
"name": "productname",
"value": "bicycle"
},
{
"name": "quantity",
"value": "1"
}
]
}
Body parameters
Expand All
object
datasetName
string
key
string
data
Array of object (Attribute)
object
name
string
value
string
Responses
200
400

RelatedDataList with dataSetName=products does not exist.