BatchCreateContactsErrorDetails
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003econtactErrors\u003c/code\u003e field provides error details when the \u003ccode\u003epeople.batchCreateContacts\u003c/code\u003e action fails, mapping the index of the failed contact in the request to a Status object describing the error.\u003c/p\u003e\n"],["\u003cp\u003eIf a contact's index is not present in \u003ccode\u003econtactErrors\u003c/code\u003e, it means the creation of that contact was successful.\u003c/p\u003e\n"],["\u003cp\u003eDetailed error information for each failed contact can be found within the \u003ccode\u003egoogle.rpc.Status.details\u003c/code\u003e field of the corresponding Status object.\u003c/p\u003e\n"]]],["The core content details the structure for recording errors in the `people.batchCreateContacts` action. It uses a `contactErrors` map to report failures. The `contactErrors` map uses an integer key representing the index of the contact in the batch request. The value associated with each key is a `Status` object, providing error details for that specific contact. If a contact's index is not in the map, its creation was successful. The details about error for that specific contact are in the `google.rpc.Status.details`.\n"],null,["# BatchCreateContactsErrorDetails\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nMessage to record error details when the request fails in the people.batchCreateContacts action.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------|\n| ``` { \"contactErrors\": { integer: { object (/people/api/rest/v1/Status) }, ... } } ``` |\n\n| Fields ||\n|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `contactErrors` | `map (key: integer, value: object (`[Status](/people/api/rest/v1/Status)`))` Provides details for the client to identify the contact(s) that caused the batch creation to fail. If an index does not appear, then the creation of that contact would have been successful. In the map below: - The key is the index of the contact in the [BatchCreateContactsRequest.contacts](/people/api/rest/v1/people/batchCreateContacts#body.request_body.FIELDS.contacts). Indexes start from 0. - The value is a Status. [google.rpc.Status.details](/people/api/rest/v1/Status#FIELDS.details) will contain the list of errors for the contact An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |"]]