Method: userQueries.rename

Renames an existing user query. A user query with the old name must exist, and the new name must be a available. This is equivalent to calling queries.delete on the old name and queries.create with the new name. Returns the user query with the new name.

HTTP request

POST https://fullcirclequery.googleapis.com/v2/userQueries/{oldQueryName}:rename

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
oldQueryName

string

The existing query name.

Request body

The request body contains data with the following structure:

JSON representation
{
  "newQueryName": string,
  "customerId": string
}
Fields
newQueryName

string

The new query name.

customerId

string (int64 format)

The Ads Data Hub customer that owns the query.

Response body

If successful, the response body contains an instance of Query.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/adsdatahub
  • https://www.googleapis.com/auth/xapi.zoo