Obsoleto: não é mais possível adicionar arquivos a várias pastas. Use shortcuts
supportsAllDrives
boolean
Se o aplicativo que fez a solicitação é compatível com o Meu Drive e os drives compartilhados.
supportsTeamDrives (deprecated)
boolean
Obsoleto: use supportsAllDrives.
Corpo da solicitação
O corpo da solicitação contém uma instância de ChildReference.
Corpo da resposta
Se a solicitação for bem-sucedida, o corpo da resposta incluirá uma instância de ChildReference.
Escopos de autorização
Requer um dos seguintes escopos de OAuth:
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/drive.file
Alguns escopos são restritos e exigem uma avaliação de segurança para que sejam usados pelo app. Para mais informações, consulte o Guia de autorização.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-09-03 UTC."],[[["This endpoint inserts a file into a specified folder within Google Drive using an HTTP POST request."],["The request requires a `folderId` path parameter to identify the target folder and accepts optional query parameters like `supportsAllDrives`."],["A `ChildReference` object is provided in the request body to specify the file to be inserted, and a newly created `ChildReference` is returned in the response upon success."],["Authorization is required with one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file`."]]],["The core action is inserting a file into a folder using a POST request to `https://www.googleapis.com/drive/v2/files/{folderId}/children`. The `folderId` is a required path parameter. Query parameters include `enforceSingleParent`, `supportsAllDrives`, and `supportsTeamDrives` with the latter two replacing the former. The request and response bodies use the `ChildReference` instance. Authorization requires specific OAuth scopes like `https://www.googleapis.com/auth/drive` and others, with some requiring security assessments.\n"]]