Toggle menu

deleteAttachmentFromListItem

Description

Delete an attachment from a list item in a SharePoint list.

Parameters

NameTypeComments
listTitleStringThe title of the list that contains the list item to delete the attachment from. Exactly one of 'listTitle' or 'listUrl' must be specified
listUrlStringThe relative server list that contains the list item to delete the attachment from. Exactly one of 'listTitle' or 'listUrl' must be specified
listItemIdNumberThe id of the list item to delete the attachment from
fileNameStringThe name of the attachment to delete
authDetailsObject, optionalThe authDetails set in the worker configuration to use. If not set the request will use the default authDetails
authDetails.identifierStringThe identifier of the sharepointAuthDetails (in the worker configuration) you would like to use
authDetails.authTypeStringThe authentication of the sharepointAuthDetails (in the worker configuration) you would like to use

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "deleteAttachmentFromListItem",
    "params": {
        "listTitle": "GossTest",
        "listItemId": 1,
        "fileName": "MyImage.jpg"
    }
}

Last modified on 27 June 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon