AI-generated Key Takeaways
-
The
batchUpdatemethod allows for updating multipleSiteobjects via a single API request. -
A
POSTrequest is used, targeting the/v1/{parent}/sites:batchUpdateendpoint. -
The request body includes a list of
UpdateSiteRequestobjects, each specifying aSiteobject and anupdateMaskto indicate which fields to modify. -
The response body contains the updated
Siteobjects. -
Authorization requires the
https://www.googleapis.com/auth/admanagerOAuth scope.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- UpdateSiteRequest
- Try it!
API to batch update Site objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/sites:batchUpdate
Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource where |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests": [
{
object ( |
| Fields | |
|---|---|
requests[] |
Required. The |
Response body
Response object for sites.batchUpdate method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"sites": [
{
object ( |
| Fields | |
|---|---|
sites[] |
The |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.
UpdateSiteRequest
Request object for sites.patch method.
| JSON representation |
|---|
{
"site": {
object ( |
| Fields | |
|---|---|
site |
Required. The The |
updateMask |
Required. The list of fields to update. This is a comma-separated list of fully qualified names of fields. Example: |