Create Batch Endpoint
POST
/v1/batches
const url = 'http://localhost:8080/v1/batches';const form = new FormData();form.append('files', 'example');form.append('name', 'example');form.append('template_id', 'example');form.append('processing_mode', 'example');form.append('page_range', 'example');form.append('page_cap_policy', 'example');form.append('destination_connection_id', 'example');form.append('destination_config', 'example');
const options = {method: 'POST'};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/batches \ --header 'Content-Type: multipart/form-data' \ --form files=example \ --form name=example \ --form template_id=example \ --form processing_mode=example \ --form page_range=example \ --form page_cap_policy=example \ --form destination_connection_id=example \ --form destination_config=exampleRequest Body
Section titled “Request Body ” Media type multipart/form-data
Body_create_batch_endpoint_v1_batches_post
object
files
Any of:
Array<string>
null
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Create Batch Endpoint V1 Batches Post
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}