Create a record
Creates a new record in the specified data container. The record will be provided in the request content as XML or JSON. The ID of the record will be returned inside the location response header field.
Information noteNote: Your submitted ID will be
used to create the record even if the ID is set to be auto-generated in the data model. An
update operation will be performed if a record with the same ID already exists in MDM.
Request |
The body is an XML or JSON representation of the record to be created. |
Parameters |
|
Headers |
|
Response | No content. |
Status |
|
Limitation | This REST API does not support creating a new record for the Role entity in the PROVISIONING system data container. |
Sample request in XML format
<Product>
<Picture>/imageserver/upload/TalendShop/tshirt.jpg</Picture>
<Id>231035936</Id>
<Name>Talend Fitted T-Shirt</Name>
<Description>Fitted T. ultra-fine combed ring spun cotton</Description>
<Features>
<Sizes/>
<Colors/>
</Features>
<Availability>false</Availability>
<Price>15.99</Price>
<Family>[1]</Family>
<OnlineStore>Talend Shop@@http://www.cafepress.com/Talend.231035936</OnlineStore>
<Stores>
<Store></Store>
</Stores>
</Product>
Sample request in JSON format
{
"Product": {
"Picture": "/imageserver/upload/TalendShop/tshirt.jpg",
"Id": "231035936",
"Name": "Talend Fitted T-Shirt",
"Description": "Fitted T. ultra-fine combed ring spun cotton",
"Features": {
"Sizes": {},
"Colors": {}
},
"Availability": "false",
"Price": "15.99",
"Family": "[1]",
"OnlineStore": "Talend Shop@@http://www.cafepress.com/Talend.231035936",
"Stores": {}
}
}
Sample response headers
{
"pragma": "No-cache",
"date": "Tue, 18 Dec 2018 02:35:36 GMT",
"location": "231035936"
}