Skip to navigation

Import a file of a source as an asset

Beta

Bring one file of a source in as a new Athena asset, filed in folder_asset_id. The file is downloaded inside Athena with the caller’s own sign-in and is at most 100 MiB. The caller needs a connected account of their own for the source, and must be able to edit the folder. The new asset takes the sharing of where it is filed: whoever can open the Drive or the place the folder is in can open it. A SharePoint file is imported as the same protected copy Athena’s own import makes: it cannot be shared person by person, moved or renamed afterwards, and a share made on the folder itself for one person is not copied onto it. OneDrive files cannot be imported yet (import_not_supported). Returns the new asset’s id; no token or download link is returned.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

catalog_asset_idstringRequired
The catalog of the source the file is in.

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
folder_asset_idstringRequired1-256 characters
The folder asset the new asset is filed in. It must be a folder of the source's workspace that the caller may edit.
item_idstringRequired1-512 characters

The file’s id, as GET /connectors/{catalog_asset_id}/items listed it.

Response

Successful Response
asset_idstring
The new asset.
asset_typestring
Its type, to open it with.
catalog_asset_idstring
The source it was imported from.
folder_asset_idstring
The folder it was filed in.
titlestring

Its title: the file’s name.

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
502
Bad Gateway Error
503
Service Unavailable Error