Method: admin.directory.v1.customers.chrome.printers.batchCreatePrinters

Creates printers under given Organization Unit.

HTTP request

POST https://admin.googleapis.com/admin/directory/v1/{parent=customers/*}/chrome/printers:batchCreatePrinters

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the customer. Format: customers/{customer_id}

Request body

The request body contains data with the following structure:

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

object (CreatePrinterRequest)

A list of Printers to be created. Max 50 at a time.

Response body

Response for adding new printers in batch.

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

JSON representation
{
  "printers": [
    {
      object (Printer)
    }
  ],
  "failures": [
    {
      object (FailureInfo)
    }
  ]
}
Fields
printers[]

object (Printer)

A list of successfully created printers with their IDs populated.

failures[]

object (FailureInfo)

A list of create failures. Printer IDs are not populated, as printer were not created.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/admin.chrome.printers

For more information, see the Authorization guide.

CreatePrinterRequest

Request for adding a new printer.

JSON representation
{
  "parent": string,
  "printer": {
    object (Printer)
  }
}
Fields
parent

string

Required. The name of the customer. Format: customers/{customer_id}

printer

object (Printer)

Required. A printer to create. If you want to place the printer under particular OU then populate printer.org_unit_id filed. Otherwise the printer will be placed under root OU.