Update a batch of contacts and return a map of resource names to PersonResponses for the updated contacts.
Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
HTTP request
POST https://people.googleapis.com/v1/people:batchUpdateContacts
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "contacts": { string: { object ( |
Fields | |
---|---|
contacts |
Required. A map of resource names to the person data to be updated. Allows up to 200 contacts in a single request. An object containing a list of |
updateMask |
Required. A field mask to restrict which fields on the person are updated. Multiple fields can be specified by separating them with commas. All specified fields will be replaced, or cleared if left empty for each person. Valid values are:
|
readMask |
Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. If read mask is left empty, the post-mutate-get is skipped and no data will be returned in the response. Valid values are:
|
sources[] |
Optional. A mask of what source types to return. Defaults to |
Response body
If not successful, returns BatchUpdateContactsErrorDetails
, a list of errors corresponding to each contact.
The response to a request to update a batch of contacts.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"updateResult": {
string: {
object ( |
Fields | |
---|---|
updateResult |
A map of resource names to the contacts that were updated, unless the request An object containing a list of |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/contacts
For more information, see the Authorization guide.