L2 Construct: create_folder
drive googleDescription
CreateFolder creates a new folder in Google Drive with the specified name and shares it with the provided list of users. It returns the ID of the newly created folder.
L2 Data
- Provider: google
- Module: gdrive
- Action: create_folder
Example Step
{
"name": "insert-your-step-name",
"type": "l2",
"l2_data": {
"provider": "google",
"module": "gdrive",
"action": "create_folder",
"metadata": {}
}
}
Input
Example
{
"folder_name": "Project X Documents",
"users": ["user1@example.com", "user2@example.com"]
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/google/gdrive/create-folder-input",
"$ref": "#/$defs/CreateFolderInput",
"$defs": {
"CreateFolderInput": {
"properties": {
"folder_name": {
"type": "string"
},
"users": {
"items": {
"type": "string"
},
"type": "array"
}
},
"additionalProperties": false,
"type": "object",
"required": ["folder_name", "users"]
}
}
}
Output
Example
{
"folder_id": "1GCZk30XFjIG-zp_0vLm3CsfQh_i8eXc67Jo2O9C8Xwe"
}
Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pontus.bpa/pkgs/l2/google/gdrive/create-folder-output",
"$ref": "#/$defs/CreateFolderOutput",
"$defs": {
"CreateFolderOutput": {
"properties": {
"folder_id": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": ["folder_id"]
}
}
}