POST
/
v1
/
workbooks
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>"
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

Excel (.xlsx) file

Response

Successful Response

id
string
required

The id of the newly uploaded workbook