POST
/
v1
/
workbooks
import Grid from '@grid-is/api';

const client = new Grid();

async function main() {
  const response = await client.workbooks.upload({ file: fs.createReadStream('path/to/file') });

  console.log(response.id);
}

main();
{
  "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

Response

200
application/json
Successful Response
id
string
required

The id of the newly uploaded workbook