{"openapi":"3.0.0","info":{"description":"Provides a historical view of activity in Google Drive.","version":[{"name":"v2","value":"v2"}]},"servers":[{"description":"Provides a historical view of activity in Google Drive.","url":"https://api.apirails.com/googledriveactivity"}],"paths":{"/v2/activity/query":{"post":{"tags":["File Storage"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://developers.google.com/workspace/drive/activity/v2/reference/rest/v2/activity/query","api_endpoint":"https://driveactivity.googleapis.com/v2/activity:query"},"summary":"Query Drive activity","description":"Query past activity in Google Drive.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"ancestorName":{"type":"string","description":"Return activities for this Drive folder, plus all children and descendants. The format is `items/ITEM_ID`."},"consolidationStrategy":{"type":"object","description":"Details on how to consolidate related actions that make up the activity. If not set, then related actions aren't consolidated.","properties":{"legacy":{"type":"object","description":"The individual activities are consolidated using the legacy strategy."},"none":{"type":"object","description":"The individual activities are not consolidated."}}},"filter":{"type":"string","description":"The filtering for items returned from this query request. The format of the filter string is a sequence of expressions, joined by an optional \"AND\", where each expression is of the form \"field operator value\". Supported fields: - `time`: Uses numerical operato"},"itemName":{"type":"string","description":"Return activities for this Drive item. The format is `items/ITEM_ID`."},"pageSize":{"type":"number","description":"The minimum number of activities desired in the response; the server attempts to return at least this quantity. The server may also return fewer activities if it has a partial response ready before the request times out. If not set, a default value is used."},"pageToken":{"type":"string","description":"The token identifies which page of results to return. Set this to the next_page_token value returned from a previous query to obtain the following page of results. If not set, the first page of results is returned."}}},"example":{"ancestorName":"items/ITEM_ID","consolidationStrategy":{},"filter":"value","itemName":"items/ITEM_ID","pageSize":10,"pageToken":"page-token"}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}