AI-generated Key Takeaways
-
The
batchDeactivatemethod deactivates a list ofSiteobjects using an HTTP POST request. -
The request requires a
parentpath parameter specifying the network code. -
The request body must contain a JSON object with a
namesfield, which is a list of resource names of theSiteobjects to deactivate. -
A successful response will have an empty response body.
-
This method requires the
https://www.googleapis.com/auth/admanagerauthorization scope.
Deactivates a list of Site objects.
HTTP request
POST https://admanager.googleapis.com/v1/{parent}/sites:batchDeactivate
Path parameters
| Parameters | |
|---|---|
parent |
Required. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "names": [ string ] } |
| Fields | |
|---|---|
names[] |
Required. The resource names of the |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/admanager
For more information, see the OAuth 2.0 Overview.