yaml
type: "io.kestra.plugin.microsoft365.oneshare.Create"
yaml
id: create_onedrive_folder
namespace: company.team

tasks:
  - id: create
    type: io.kestra.plugin.microsoft365.oneshare.Create
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    parentId: "root"
    name: "new-folder"
    itemType: FOLDER

yaml
id: create_text_file
namespace: company.team

tasks:
  - id: create_file
    type: io.kestra.plugin.microsoft365.oneshare.Create
    tenantId: "{{ secret('TENANT_ID') }}"
    clientId: "{{ secret('CLIENT_ID') }}"
    clientSecret: "{{ secret('CLIENT_SECRET') }}"
    driveId: "b!abc123def456"
    parentId: "root"
    name: "readme.txt"
    content: "Hello World!"
Properties
DefaultFILE
Possible Values
FILEFOLDER
Definitions
createdDateTimestring
Formatdate-time
idstring
isFolderboolean
lastModifiedDateTimestring
Formatdate-time
mimeTypestring
namestring
sizeinteger
webUrlstring