Generate a set of file IDs

GET {{baseUrl}}/files/generateIds?key={{key}}&oauth_token={{oauthToken}}

Generates a set of file IDs which can be provided in create or copy requests.

Request Params

KeyDatatypeRequiredDescription
countstringThe number of IDs to return.
spacestringThe space in which the IDs can be used to create new files. Supported values are 'drive' and 'appDataFolder'. (Default: 'drive')
typestringThe type of items which the IDs can be used for. Supported values are 'files' and 'shortcuts'. Note that 'shortcuts' are only supported in the drive 'space'. (Default: 'files')
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"ids":["\u003cstring\u003e","\u003cstring\u003e"],"kind":"drive#generatedIds","space":"\u003cstring\u003e"}