accounts

POST /v1beta/accounts/{accountsId}:searchChangeHistoryEvents

Searches through all changes to an account or its children given the specified set of filters. Only returns the subset of changes supported by the API. The UI may return additional changes.

Request

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

Path parameters

accountsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API 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_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Request body

GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest required

Request message for SearchChangeHistoryEvents RPC.

action, string[]

Optional. If set, only return changes that match one or more of these types of actions.

actorEmail, string[]

Optional. If set, only return changes if they are made by a user in this list.

earliestChangeTime, string google-datetime

Optional. If set, only return changes made after this time (inclusive).

latestChangeTime, string google-datetime

Optional. If set, only return changes made before this time (inclusive).

pageSize, integer

Optional. The maximum number of ChangeHistoryEvent items to return. If unspecified, at most 50 items will be returned. The maximum value is 200 (higher values will be coerced to the maximum). Note that the service may return a page with fewer items than this value specifies (potentially even zero), and that there still may be additional pages. If you want a particular number of items, you'll need to continue requesting additional pages using page_token until you get the needed number.

pageToken, string

Optional. A page token, received from a previous SearchChangeHistoryEvents call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SearchChangeHistoryEvents must match the call that provided the page token.

property, string

Optional. Resource name for a child property. If set, only return changes made to this property or its child resources. Format: properties/{propertyId} Example: properties/100

resourceType, string[]

Optional. If set, only return changes if they are for a resource that matches at least one of these types.

Response

Successful response

GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse required

Response message for SearchAccounts RPC.

changeHistoryEvents, GoogleAnalyticsAdminV1betaChangeHistoryEvent[]

Results that were accessible to the caller.

nextPageToken, string

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

Changes

No recorded changes to this operation across all 5 revisions of this API.