Description
Delete an attachment from a list item in a SharePoint list.
Parameters
Name | Type | Comments | |
---|---|---|---|
listTitle | String | The title of the list that contains the list item to delete the attachment from. Exactly one of 'listTitle' or 'listUrl' must be specified | |
listUrl | String | The relative server list that contains the list item to delete the attachment from. Exactly one of 'listTitle' or 'listUrl' must be specified | |
listItemId | Number | The id of the list item to delete the attachment from | |
fileName | String | The name of the attachment to delete | |
authDetails | Object, optional | The authDetails set in the worker configuration to use. If not set the request will use the default authDetails | |
authDetails.identifier | String | The identifier of the sharepointAuthDetails (in the worker configuration) you would like to use | |
authDetails.authType | String | The 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 June 27, 2023