Im unteren Beispiel wird dem Products Entity mit der Id (1) die Zusatzinfomation Freifeld 1: Angabe aus Freifeld 1 zugewiesen.
Request
POST http://sandboxapi.via.de/publicapi/v1/api.svc/OptionalProductAttributes
Request HTTP-Header
Content-Type: application/atom+xml
SubscriptionToken: g93af799-6ae8-e111-8406-0050568261dc
Cookie: .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly
Request Body
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<entry xml:base="http://sandboxapi.via.de/publicapi/v1/api.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<content type="application/xml">
<m:properties>
<d:ProductId>1</d:ProductVariationId>
<d:Name>Freifeld 1</d:Name>
<d:Value>Angabe aus Freifeld 1</d:Value>
</m:properties>
</content>
</entry>
Response
Response HTTP-Header
Status Code: 201 Created
Cache-Control: no-cache
Content-Length: 2154
Content-Type: application/atom+xml;charset=utf-8
DataServiceVersion: 1.0;
Request HTTP-Header
Content-Type: application/json
SubscriptionToken: g93af799-6ae8-e111-8406-0050568261dc
Cookie: .ASPXAUTH=0186587E1743637D35632A7EDAF4F07EA67C6E4577770C3778FD9C17904A9D85B01369A8198B23A9AF530DBE93A68687C219BE1876B16B 0DAEBBD2C3318CA6C99D9C53E5B9FE17B7CF9661C5CDDDB97B90D5D3AF550100227EC8D6E6858FAE986AF2302C337B8DFEC6099898C19AA335A81317AB2B382DE72586AA9DF830C715332215AEBFD5E2FBA45F2BB5A7CA9793; path=/; HttpOnly
Request Body
{
"ProductId" : "1",
"Name" : "Freifeld 1",
"Value" : "Angabe aus Freifeld 1"
}
Response
Response HTTP-Header
Status Code: 201 Created
Cache-Control: no-cache
Content-Length: 2154
Content-Type: application/json;charset=utf-8
DataServiceVersion: 1.0;