[[TracNav(TracNav)]]
Ce document est aussi disponible en [wiki:Fr/AtomApiTutorial/Put Français]
----
== Put ==
To update a blogmark, just PUT an Atom entry on the mark editURI.
The editURI can be found in Atom entries and is basically http://api.blogmarks.net/marks/$MarkID
Authentication is explained in AtomApiTutorial/Get
The client send :
{{{
PUT /marks/31523 HTTP/1.0
Host: api.blogmarks.net
Accept: application/atom+xml
Content-Type: text/xml; charset=utf-8
Content-length: 433
Authorization: WSSE profile="UsernameToken"
X-WSSE: UsernameToken Username="$Username", PasswordDigest="$PasswordDigest", Nonce="$Nonce", Created="$CreationTimestamp"
Znarf BlogThis blog *really* rox
}}}
The server response :
{{{
HTTP/1.1 200 OK
Date: Wed, 09 Mar 2005 11:21:03 GMT
Content-length: 811
Connection: close
Content-Type: application/atom+xml; charset=utf-8
Znarf Blog
This blog *really* rox2005-03-09T11:21:03Zznarfhttp://api.blogmarks.net/marks/315232005-03-09T12:21:03Z
}}}
----
See also : [wiki:AtomApiTutorial/Get AtomApiTutorial/Get], [wiki:AtomApiTutorial/Post AtomApiTutorial/Post], [wiki:AtomApiTutorial/Delete AtomApiTutorial/Delete]