Description
Takes a file from the file store and uploads it to SharePoint.
The metadata parameter contains the metadata you want to add to SharePoint. Only metadata columns that already exist in SharePoint can be added.
Parameters
Name | Type | Description |
---|---|---|
filestoreId | String, required | The UUID of the file in the filestore 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 |
metadata | Object, optional | Key/value pairs for the metadata you want to add to the file in SharePoint |
overwrite | Boolean, optional | Default: |
fileName | String, optional | A name for the file when added. If not supplied the file name in the filestore will be used |
filestoreApiKey | String, optional | An API key to access the filestore |
Example
{
"id": "123",
"jsonrpc": "2.0",
"method": "filestoreToSharepoint",
"params": {
"authDetails": {
"identifier": "GossTest",
"authType": "SAML"
},
"filestoreId": "fe7bfe91-a4f1-446f-8678-0dc8657f0a64",
"sharepointFolder": "Shared Documents",
"metadata": {
"Title": "An example word doc",
"Year": "1066",
"Note": "Upload test to test searching"
}
}
}
Last modified on 25 September 2024