{
"kind": "aodocs#document",
"libraryName": "my-dms-by-alt-on-test-001",
"className": "my-dms-by-alt-on-test-001-class-001",
"className_i18n": "my-dms-by-alt-on-test-001-class-001",
"libraryId": "RrVcEFb8wtDeNAnlmNN",
"classId": "RrVcdN280MKJwPyE7sh",
"id": "RrVsvlY80jV2N7NcCIy", // <— documentId
"title": "my-important-document-with-spreadsheet-attachment",
"richText": "",
...
"attachments": [
{
"fileId": "1wwO-7T8e_doTw3rK3_wqvyh5zEWL5IKDh", // ⇐ same as in the request, unlike with the \`\`\`attachmentsToCopy\`\`\` parameter
"name": "my-important-spreadsheet",
"mimeType": "application/vnd.google-apps.spreadsheet",
"link": "https://docs.google.com/spreadsheets/d/108JuZK8TqnjYI3YND_GmiIc-tfoZVJ7IJzQrD8lfjNJc/edit?usp=drivesdk",
...
}
],
"folders": [
{ // library root folder
"kind": "aodocs#folder",
"libraryId": "Rs4xtue86axGNklquDP",
"libraryName": "my-sf-prod-001",
"folderAodocsId": "0", // ⇐ "0" means root folder
"fileId": "1Q4_rHI8Xzebc7PEOCH9-IjAAmTYvXXBBu", // ⇐ root folder Drive ID
"name": "my-sf-prod-001",
"parentFolderIsRoot": false,
"folderIsRoot": true,
...
},
{ // actual folder the document is in
"kind": "aodocs#folder",
"libraryId": "Rs4xtue86axGNklquDP",
"libraryName": "my-sf-prod-001",
...
"folderAodocsId": "1BaNSFx8JYE04gHoH_H1sqPzyJVwr1cqma",
"parentFolderAodocsId": "0", // ⇐ we are one level below root
"parentFolderDriveId": "1Q4_rHI8Xzebc7PEOCH9-IjAAmTYvXXBBu",
"fileId": "1BaNSFx8JYE04gHoH_H1sqPzyJVwr1cqma", // ⇐ subfolder Drive ID
"name": "test-sf-prod-001-subfolder1",
"parentFolderIsRoot": true, // ⇐ we are one level below root
"folderIsRoot": false,
...
}
],
"numberOfAttachments": 1,
}