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.
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"
}