Method: networks.contacts.batchCreate

API to batch create Contact objects.

HTTP request

POST https://admanager.googleapis.com/v1/{parent}/contacts:batchCreate

Path parameters

Parameters
parent

string

Required. The parent resource where Contacts will be created. Format: networks/{networkCode} The parent field in the CreateContactRequest must match this field.

Request body

The request body contains data with the following structure:

JSON representation
{
  "requests": [
    {
      object (CreateContactRequest)
    }
  ]
}
Fields
requests[]

object (CreateContactRequest)

Required. The Contact objects to create. A maximum of 100 objects can be created in a batch.

Response body

Response object for contacts.batchCreate method.

If successful, the response body contains data with the following structure:

JSON representation
{
  "contacts": [
    {
      object (Contact)
    }
  ]
}
Fields
contacts[]

object (Contact)

The Contact objects created.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

CreateContactRequest

Request object for contacts.create method.

JSON representation
{
  "parent": string,
  "contact": {
    object (Contact)
  }
}
Fields
parent

string

Required. The parent resource where this Contact will be created. Format: networks/{networkCode}

contact

object (Contact)

Required. The Contact to create.