Skip to navigation

Convert an Excel asset to an Athena sheet

Beta

Convert an uploaded Excel (.xlsx) asset into an editable Athena sheet — the same conversion the Athena UI performs. By default a new sheet asset is created alongside the source Excel asset; pass run_async for large workbooks to get the sheet immediately and poll its athena_metadata.conversionStatus for completion. With in_place the uploaded file itself becomes the sheet and keeps its asset id (sheet_asset_id is excel_asset_id, and no second asset is created); poll that asset until its media_type is ‘athena/spreadsheet’, or until athena_metadata.sheet_upload_conversion.status is ‘failed’ or ‘skipped’.

Authentication

X-API-KEYstring
API Key authentication via header

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
excel_asset_idstringRequired

ID of the Excel (.xlsx) asset to convert into an Athena sheet

in_placebooleanOptionalDefaults to false

Make the uploaded file itself the Athena sheet, keeping its asset id: sheet_asset_id is excel_asset_id and no second asset is created. Needs edit access to the upload, and takes an .xlsx/.xlsm/.xlsb workbook or a .csv/.tsv file. A password-protected workbook is refused (convert it into a new sheet with password instead), and the sheet is always on the rnc engine. Without run_async the request waits up to about 50 seconds for the conversion; conversion_status ‘converting’ means it is still running. Poll the asset until its media_type is ‘athena/spreadsheet’, or until athena_metadata.sheet_upload_conversion.status is ‘failed’ or ‘skipped’ (with its reason).

passwordstring or nullOptional

Optional password used to decrypt a password-protected workbook. Password-protected workbooks convert on either engine (they are decrypted server-side before an rnc import).

run_asyncbooleanOptionalDefaults to false

Return the sheet asset immediately and convert in the background. Large workbooks outlive the gateway’s ~60s response window on the synchronous path — with run_async the caller polls athena_metadata.conversionStatus (‘converting’ | ‘completed’ | ‘failed’, with conversionError on failure) instead.

spreadsheet_enginestring or nullOptional

Engine for the converted sheet (‘rnc’ | ‘legacy’). Defaults to the deployment’s default engine.

Response

Excel asset converted successfully
asset_typestring
Type of the created sheet asset
excel_asset_idstring
ID of the source Excel asset
sheet_asset_idstring

ID of the Athena sheet: a new asset, or excel_asset_id itself for an in_place conversion

titlestring
Title of the created sheet asset
conversion_statusstring or nullOptional

Conversion status for background (run_async) conversions: ‘converting’ immediately after the request. Poll the asset’s athena_metadata.conversionStatus for ‘completed’ | ‘failed’. Null for synchronous conversions, which have already completed. An in_place conversion still running answers ‘converting’ too; see in_place for how to poll it.

parent_folder_idstring or nullOptional
ID of the sheet asset's parent folder
workspace_idstring or nullOptional
ID of the workspace that owns the sheet asset

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error
503
Service Unavailable Error