JavaScript
import Grid from '@grid-is/api'; const client = new Grid({ apiKey: 'My API Key', }); const response = await client.workbooks.upload({ file: fs.createReadStream('path/to/file') }); console.log(response.id);
{ "id": "<string>" }
Upload an Excel workbook file and make it available in the API.
The workbook will be processed in the background. Once it’s processed successfully it will be available for querying and exporting.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Excel (.xlsx) file
Successful Response
The id of the newly uploaded workbook