Description
Takes a string encoded file and uploads it to SharePoint.
Parameters
Name | Type | Description |
---|---|---|
fileName | String, required | The UUID of the file to upload |
sharepointFolder | String, required | The folder/folder path in SharePoint to upload to |
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 authDetails set in the worker configuration |
authDetails.authType | String | The authType of authDetails set in the worker configuration |
overwrite | Boolean, optional | Default: Whether or not you want to overwrite a file that already exists. If this property is set as |
encoding | String, optional | Default is "base64" The character encoding to use to decode the provided data into a Buffer. See NodeJS documentation for supported character encoding: https://nodejs.org/api/buffer.html#buffers-and-character-encodings |
Example
{
"id": "123",
"jsonrpc": "2.0",
"method": "fileToSharepoint",
"params": {
"fileName": "File1.txt",
"sharepointFolder": "Shared Documents",
"overwrite": "true",
"data": "RmlsZSBPbmUgQ29udGVudA==",
"encoding": "base64"
}
}
Last modified on 30 October 2024