files

GET /files/generateCseToken

Changed on

Generates a CSE token which can be used to create or update CSE files.

Request

  • Base URL
    https://www.googleapis.com/drive/v3
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/drive
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/drive

Query parameters

fileIdstring

The ID of the file for which the JWT should be generated. If not provided, an id will be generated.

parentstring

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 shared drive item, the shared drive's policy will be used to determine the KACLS that should be used. It is invalid to specify both file_id and parent in a single request.

Response

Successful response

currentKaclsIdstring int64

The current Key ACL Service (KACLS) ID associated with the JWT.

currentKaclsNamestring

Name of the KACLs that the returned KACLs ID points to.

fileIdstring

The fileId for which the JWT was generated.

jwtstring

The signed JSON Web Token (JWT) for the file.

kindstring

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#generateCseTokenResponse".

Changes