drive.files.generateCseToken
Generates a CSE token for creating or updating client-side encrypted Drive files, optionally targeting a specific file ID or expected parent.
Instructions
Generates a CSE token which can be used to create or update CSE files [HTTP GET]. Returns the requested resource as JSON — request bodies are built from the typed parameters (typed flags win over the params map), or read whole from body_file Siblings over the same resource: copy, create, delete, download, emptyTrash, export, generateIds, get, list, listLabels, modifyLabels, update, watch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Extra KEY=VALUE query pairs for endpoints whose parameters Discovery does not describe. | |
| fileId | No | [query parameter] The ID of the file for which the JWT should be generated. If not provided, an id will be generated. | |
| params | No | Parameter map merged into the request; typed parameters win. | |
| parent | No | [query parameter] The ID of the expected parent of the file. Used when generating a JWT for a new CSE file. If specified, the parent will be fetched, and if the parent is a share | |
| dry_run | No | Return the request that would be sent, without sending it. | |
| body_file | No | Read the request body from this file ('-' for stdin) instead of building one from the parameters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jwt | No | ||
| kind | No | ||
| fileId | No | ||
| currentKaclsId | No | ||
| currentKaclsName | No |