Update the specified application settings.
Perform a MERGE request at the following URL:
http://host:port/[public/]odata/applications/{v1|latest}/{appid}/Connections(‘{appcid}’)
If successful, returns a 200 OK status code.
If you never explicitly registered the client, returns a 404 status code.
POST /odata/applications/v1/com.sap.myapp/Connections('b6d50e93-bcaa-439d-9741-660a3cb56771') HTTP/1.1 X-HTTP-METHOD:MERGE Cookie: X-SUP-APPCID=b6d50e93-bcaa-439d-9741-660a3cb56771; X-SUP-SESSID=97ts80gwhxkc Content-Length: 4768 Content-Type: application/atom+xml; charset=UTF-8 Host: supserver:8000 Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.3 (java 1.5) Authorization: Basic REVWMDAwMTppbml0aWFs
[MERGE HTTP request message body]
HTTP request body:
<?xml version='1.0' encoding='utf-8'?> <entry xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <title type="text"/> <updated>2012-06-15T02:23:29Z</updated> <author> <name/> </author> <category term="applications.Connection" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/> <content type="application/xml"> <m:properties> <d:DeviceType>Unknown</d:DeviceType> … </m:properties> </content> </entry>
HTTP response header:
HTTP/1.1 200 OK Content-Length: 0 Expires: Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: X-SUP-APPCID=b6d50e93-bcaa-439d-9741-660a3cb56771 DataServiceVersion: 1.0 Date: Mon, 13 Aug 2012 23:13:04 GMT