GET/users/{userId}/drive

Gets my drive properties.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/users/{userId}/drive

Path Parameters

ParameterTypeDescription
userId string 

User ID

  • Mail
  • Resource ID
  • External key in "externalKey:{externalKey}" format
  • me

required
example : me 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
quota object (quota) 

Drive capacity information

 
trashEmptyCycle integer 

Frequency to automatically empty trash (in days)


minimum : 0
maximum : 50
format : int32
readOnly : true 

quota

PropertyTypeDescription
total integer 

Total size


format : int64
readOnly : true 
trash integer 

Trash size


format : int64
readOnly : true 
unused integer 

Unused size


format : int64
readOnly : true 
used integer 

Used size


format : int64
readOnly : true 

Response Example

example

1{2  "quota": {3    "total": 32212254720,4    "used": 210793256,5    "unused": 32001461464,6    "trash": 492137797  },8  "trashEmptyCycle": 09}