yaml
type: "io.kestra.plugin.microsoft365.oneshare.Upload"
yaml
id: upload_to_onedrive
namespace: company.team

inputs:
  - id: file
    type: FILE

tasks:
  - id: upload
    type: io.kestra.plugin.microsoft365.oneshare.Upload
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    parentId: "root"
    fileName: "uploaded-file.csv"
    from: "{{ inputs.file }}"

yaml
id: download_and_upload
namespace: company.team

tasks:
  - id: download
    type: io.kestra.plugin.core.http.Download
    uri: https://example.com/data.csv

  - id: upload
    type: io.kestra.plugin.microsoft365.oneshare.Upload
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    parentId: "root"
    fileName: "data.csv"
    from: "{{ outputs.download.uri }}"
Properties
DefaultREPLACE
Possible Values
REPLACEFAILRENAME
Default4194304
Default5
Default3276800
Defaultroot
Definitions
createdDateTimestring
Formatdate-time
idstring
isFolderboolean
lastModifiedDateTimestring
Formatdate-time
mimeTypestring
namestring
sizeinteger
webUrlstring