data.updateSingle
This method offers alternative signatures:
data.updateSingle(model, [success], [error])
Signature
data.updateSingle(model, [success], [error])
Description
Updates the provided item.
Parameters
Parameter Name | Type | Description |
---|---|---|
model |
object | The item that will be updated. Note: the ID property of the item will be used to determine which item will be updated. |
[success] |
function | A success callback. |
[error] |
function | An error callback. |
data.updateSingle(item)
Signature
data.updateSingle(item)
Description
Updates a single data item. This operation takes an object that specifies both the data item to be updated and the updated values.
Return Type
Promise - The promise for the request.
Parameters
Parameter Name | Type | Description |
---|---|---|
item |
object | The item that will be updated. Note: the ID property of the item will be used to determine which item will be updated. |