Imports

/imports

Create an import of an asset or asset version from a public URL

post/v1/imports

Request

  • Base URL
    api.air.inc (relative, and the document’s source URL is not known)
  • Auth
    • API key in header x-api-key and API key in header x-air-workspace-id
    • or HTTP bearer and API key in header x-air-workspace-id
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Request body

sourceUrlstring

The URL to get the file content. The URL needs to be publicly accessible.

fileNamestring

The name of the file

descriptionstring

The description of the file

extstring

The extension of the file in bytes

recordedAtstring

The date and time the file was created (ISO 8601 format)

parentBoardIdstring

The id of the parent board to create the asset under

assetIdstring

The id of the parent asset to create a new version for this file under

Response

Default

idstring
assetIdstring
versionIdstring

Changes

No recorded changes to this operation across all 2 revisions of this API.