Renames an existing query. A 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 query with the new name.
HTTP request
POST https://fullcirclequery.googleapis.com/v2/queries/{oldQueryName}:rename
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
oldQueryName |
The existing query name. |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "newQueryName": string, "customerId": string } |
Fields | |
---|---|
newQueryName |
The new query name. |
customerId |
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