Toggle menu

updateListItem

Description

Updates a list item in a SharePoint list.

Parameters

NameTypeDescription
listTitleStringThe title of the list that contains the list item. Exactly one of listTitle or listUrl must be specified
listUrlStringThe relative server URL of the list that contains the list item. Exactly one of listTitle or listUrl must be specified
listItemIdInteger, requiredThe ID of the list item to update
listItemDetailsObject, requiredAn object containing the updated details for the list item. Only the values being updated need to be set
authDetailsObject, optionalThe authDetails set in the worker configuration to use. If not set the request will use the default authDetails
authDetails.identifierStringThe identifier of authDetails set in the worker configuration
authDetails.authTypeStringThe authType of authDetails set in the worker configuration

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "updateListItem",
    "params": {
        "listTitle": "GossTest",
        "listItemId": 27,
        "listItemDetails": {
            "Title": "Updated Title",
            "Name": "Updated via the SharePoint worker"
        }
    }
}

Last modified on 27 June 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon