Skip to main content
jP_web_icon

jPoint Docs

Go Search
Home
jPoint Docs
Examples
Blog
  
jPoint > jPoint Docs > API > jP.Lists.List.updateItem()  

jP.Lists.List.updateItem()

jP.Lists.List.updateItem()

Method

jP.Lists.List.updateItem( data )

Overview

This method updates or adds an SPList item.

Arguments

Name
Type
Optional
Desctiption
data
JSON
false
example:data to modified JSON object [{ id:0, title:'title123', user:'user123'}, {id:5, title:'title124', user:'user124'}]
if id = 0 Add item otherwise update item

Returns

operation result
{ success: (bool) whether the operation is success
   errorCode: error code, 0x00000000 for no error
   errorText: error text, null for no error
   id: item id, -1 for error
}

Last modified at 12/4/2009 2:29 PM  by Luke Orman