Method: networks.sites.patch

  • The API allows for updating a Site object using a PATCH HTTP request to the specified resource name.

  • The site.name path parameter is a required string identifier formatted as networks/{networkCode}/sites/{site_id}.

  • The updateMask query parameter is required and specifies the fields to update using a comma-separated list in FieldMask format.

  • The request and response bodies contain instances of the Site object.

  • Authorization requires the https://www.googleapis.com/auth/admanager OAuth scope.

API to update a Site object.

HTTP request

PATCH https://admanager.googleapis.com/v1/{site.name}

Path parameters

Parameters
site.name

string

Identifier. The resource name of the Site. Format: networks/{networkCode}/sites/{site_id}

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. The list of fields to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of Site.

Response body

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

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admanager

For more information, see the OAuth 2.0 Overview.