Create a batch

Creates and executes a batch from an uploaded dataset of requests

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Headers

X-Client-NamestringOptional
The name of the project that is making the request.

Request

Information about the batch. Must contain name, input_dataset_id, and model. Output-only fields are ignored.

namestringRequired

Batch name (e.g. foobar).

input_dataset_idstringRequired
ID of the dataset the batch reads inputs from.
modelstringRequired
The name of the model the batch uses.
statusenumOptionalDefaults to BATCH_STATUS_UNSPECIFIED

read-only. Current stage in the life-cycle of the batch.

Response

A successful response.
batchobject
Information about the batch.

Errors