Copies an "Other contact" to a new contact in the user's "myContacts" group
Mutate requests for the same user should be sent sequentially to avoid increased latency and failures.
HTTP request
POST https://people.googleapis.com/v1/{resourceName=otherContacts/*}:copyOtherContactToMyContactsGroup
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
resourceName |
Required. The resource name of the "Other contact" to copy. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"copyMask": string,
"readMask": string,
"sources": [
enum ( |
Fields | |
---|---|
copyMask |
Required. A field mask to restrict which fields are copied into the new contact. Valid values are:
|
readMask |
Optional. A field mask to restrict which fields on the person are returned. Multiple fields can be specified by separating them with commas. Defaults to the copy mask with metadata and membership fields if not set. Valid values are:
|
sources[] |
Optional. A mask of what source types to return. Defaults to |
Response body
If successful, the response body contains an instance of Person
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/contacts.other.readonly
https://www.googleapis.com/auth/contacts
For more information, see the Authorization guide.