Create Spreadsheet Job
client.beta.sheets.create(SheetCreateParams { file_id, organization_id, project_id, config } params, RequestOptionsoptions?): SheetsJob { id, config, created_at, 10 more }
POST/api/v1/beta/sheets/jobs
Create a spreadsheet parsing job. Experimental: This endpoint is not yet ready for production use and is subject to change at any time.
Parameters
Returns
Create Spreadsheet Job
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const sheetsJob = await client.beta.sheets.create({
file_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
});
console.log(sheetsJob.id);{
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}Returns Examples
{
"id": "id",
"config": {
"extraction_range": "extraction_range",
"flatten_hierarchical_tables": true,
"generate_additional_metadata": true,
"include_hidden_cells": true,
"sheet_names": [
"string"
],
"table_merge_sensitivity": "strong",
"use_experimental_processing": true
},
"created_at": "created_at",
"file_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"status": "PENDING",
"updated_at": "updated_at",
"user_id": "user_id",
"errors": [
"string"
],
"file": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"name": "x",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"expires_at": "2019-12-27T18:11:19.117Z",
"external_file_id": "external_file_id",
"file_size": 0,
"file_type": "x",
"last_modified_at": "2019-12-27T18:11:19.117Z",
"permission_info": {
"foo": {
"foo": "bar"
}
},
"purpose": "purpose",
"resource_info": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z"
},
"regions": [
{
"location": "location",
"region_type": "region_type",
"sheet_name": "sheet_name",
"description": "description",
"region_id": "region_id",
"title": "title"
}
],
"success": true,
"worksheet_metadata": [
{
"sheet_name": "sheet_name",
"description": "description",
"title": "title"
}
]
}