Create
Create
yaml
type: "io.kestra.plugin.microsoft365.oneshare.Create"Examples
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
driveId *Requiredstring
name *Requiredstring
clientId string
clientSecret string
content string
itemType string
Default
FILEPossible Values
FILEFOLDERparentId string
pemCertificate string
tenantId string
Outputs
file
Definitions