Google Drive v4.0.0
Limited Use Requirements
App’s use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy, including the Limited Use requirements.
Tables of Contents
Contexts
You only need to SignIn with Google in order to use this application. You must have a Google Account.
You must grant Marjory the access authorisation (scopes) needed to run the application.
Actions
Rename
Rename
Inputs
{
"id": "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg" id of the file or folder you want to rename (required)
"name": "string", // "Myfile", New file name after renaming(required)
}
Outputs
Http Code 204
No Content
Create File
Create a new file
Inputs
{
"name": "My file", // File name.(required)
"folderId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", location where to create your File(optional)
"type": "EType", // Type of file audio, document, drive-sd, drawing, file, form, fusiontable, jam, map, photo, presentation, script, shortcut, site, spreadsheet,unknown, video.(required)
}
Outputs
Http Code 200
{
"fileId": "string" // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg" file id (required),
}
Move
Move a file or folder.
Inputs
{
"id": "string" // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", Id of the file or folder you want to move (required),
"folderId": "string" // id of the folder where to move the file (required)
}
Outputs
Http Code 204
No Content
Delete File
Delete a file
Inputs
{
"fileId": "string" // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", Id of the file you want to delete (required)
}
Outputs
Http Code 204
No Content
Create Shared Link
Create a shared link
Inputs
{
"id": "string" // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg" folder id or file id (required),
"recipients": [(required)
{
"type": "string", // user, group, domain, anyone (required)
"role": "string", // owner, fileOrganizer, writer, commenter ou reader (required)
"domain": "string", // optional, need to be filled if type = domain
"email": "string" // optional, need to be filled if type = user or group
}
]
}
Outputs
Http Code 200
{
"sharedLink" : "string" // "https://docs.google.com/spreadsheets/d/123456/edit?usp=sharing"
}
Copy File
Copy a file
Inputs
{
"fileId": "string" // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg" Id of the file you want to copy (required),
"folderId": "string", // id of the folder where to copy the file, if empty, copy file to the root(optional)
"name" : "string", // "MyCopiedfile" , This will be the name of the duplicated file. If empty, the name of the source file will be duplicated adding "-copy" at the end. (optional)
"keepSamePermissions": boolean // "true||false". Share duplicated file with the same people. (required)
}
Outputs
Http Code 200
{
"fileId": "string" // id of the copy,
"name" : "string", // "MyCopiedfile" , This will be the name of the duplicated file. The name of the source file will be duplicated adding "-copy" at the end if it was empty in the input.
}
Create Folder
Create a new folder
Inputs
{
"folderId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", parent folder id, location where to create your Folder. If empty, upload file to the root “my-drive”(optional)
"name" : "string", // "wintercollection", name of folder you want to create(required)
}
Outputs
Http Code 200
{
"folderId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", location where to create your Folder
}
Upload File
Upload a file
Inputs
{
"folderId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", location where to upload your file. If folderId empty, upload file to the root “my-drive” (optional)
"marjoryFile": { (required)
"id": "string", // "a5e449fe-27658"
"name": "string", // "file_name",
"contentType": "string", // "image/jpeg"
"link": "string", // "https://fileserver.marjory.io/files/a5e449fe-2765"
"size": "number", // 656
"lastModified": "string" // "2022-05-25T09:41:28.640Z"
}
}
Outputs
Http Code 200
{
"fileId": "string" // id of your uploaded file
}
Download File
Download a file
Inputs
{
"fileId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", if of the file you want to download. (required)
}
Outputs
Http Code 200
{
"marjoryFile": {
"id": "string", // "a5e449fe-27658"
"name": "string", // "file_name",
"contentType": "string", // "image/jpeg"
"link": "string", // "https://fileserver.marjory.io/files/a5e449fe-2765"
"size": "number", // 656
"lastModified": "string" // "2022-05-25T09:41:28.640Z"
}
}
List
List
Inputs
{
"folderId" : "string", // "1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg", files and folders location (optional)
}
Outputs
Http Code 200
{
"content": [
{
"name": "string",
"id": "string"
"type" : "folder"
},
{
"name": "string",
"id": "string"
"type" : "file"
}
]
}
Delete Folder
Delete Folder. Be cautious with this use. Deleting a folder deletes all the sub-folders and files it contains.
Inputs
{
"folderId" : "string", // ""1kbfNEuHSUxMTKk3bzsVH7V_mE5ViP1X-z9EKgjiaALg"", Id of the folder you want to delete (required)
}
Outputs
Http Code 204
No Content
Events
Check refresh token
Check refresh token is an internal function for marjory and must not be used in workflow.
Version(s)
4.0.0