Version User Scope of changes
Mar 9 2009, 2:42 PM EDT (current) boe_wetpaint 15 words added, 1 word deleted
Feb 26 2009, 5:45 PM EST boe_wetpaint 106 words added, 18 words deleted

Changes

Key:  Additions   Deletions

HTTP MethodURIReturns
POST/CellService/editCell.doThe edited cell.

Overview: Updates the content of a cell. If the specified cell does not exist, then it is created. (NOTE: Currently, creating a cell through this call is the only way to specify a custom creation date.)
Required Parameters:

key
The developer key. This value is provided by Wetpaint during initial developer registration

ns
The content namespace. This value is provided by Wetpaint during initial developer registration

ticket
The ticket assigned to the current logged-in user

cell.cellId
The name of the cell to be edited

cell.displayName
The display name of the cell

cell.url
The cell’s URL

cell.currentRevision.version
The version of the cell being editededited. If the cell is being created, then the currentRevision.version should be set to 0.

revision.content
The new HTML content

Optional Parameters:

revision.editNote
Edit note

revision.date
Desired date and time for new revision in ISO8601 format, e.g. 2008-12-31T23:59:59-08:00. This parameter is currently only used when editing the first revision of a cell.

Example Request ( required parameters in red ):

http://wapi.wetpaint.com/CellService/editCell.do
?key=yourissueddeveloperkey
&ns=yourassignednamespace
&cell.cellId=someCell
&cell.displayName=
Some%20Rad%20Cell
&cell.url=
http%3A%2F%2Fwww.yoursite.com%2Fmypage
&cell.currentRevision.version=3
&revision.content=%3Cdiv%3ESome%20Rad%20Content%3C%2Fdiv%3E

&ticket=ticketFromLogin
&output=api
&revision.editNote=I%20edited%20this.


Example Response:

<?xml version="1.0" encoding="UTF-8"?>
<response version="123456789"><cell><cellId>someCell</cellId><currentRevision><content><![CDATA[<div>Some Rad Content</div>]]></content><date>2008-10-08T10:34:58-07:00</date><deleted>false</deleted><diff><addedImages>0</addedImages><addedWidgets>0</addedWidgets><addedWords>0</addedWords><deletedImages>0</deletedImages><deletedWidgets>0</deletedWidgets><deletedWords>0</deletedWords></diff><editNote>I edited this.</editNote><type>edit</type><user><userId>IAmARegisteredUser</userId></user><version>4</version><wordCount>3</wordCount></currentRevision><deleted>false</deleted><displayName>Some Rad Cell</displayName><locked>false</locked><tags total="0" offset="0"/><url>http://www.yoursite.com/mypage</url></cell></response>