Method: networks.contacts.patch

  • This document details the API for updating a Contact object.

  • The API uses a PATCH HTTP request to the specified endpoint, including the contact's name as a path parameter.

  • A required updateMask query parameter specifies which fields of the Contact object to update.

  • The request and response bodies both contain an instance of the Contact object.

  • Updating a contact requires the https://www.googleapis.com/auth/admanager OAuth scope for authorization.

API to update a Contact object.

HTTP request

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

Path parameters

Parameters
contact.name

string

Identifier. The resource name of the Contact. Format: networks/{networkCode}/contacts/{contact_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 Contact.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.