# Get what an unstarted import's file looked like

Administrators only. The same answer `createImport` gave when the file was uploaded, for an import that has not started (`uploaded` or `planned`): the file's headers and first rows, `detected`, and `suggestedMapping`, which is the mapping the import already has when it has one (made by the Linear connector, or saved by a preview) and the suggestion otherwise. It lets a screen review an import it did not upload itself, such as each team of a Linear fetch, or one found again after a reload. An import that has started is a 409 `not_editable`. One in another workspace is a 404.

Canonical: https://easerix.com/docs/developers/api/tasks/imports/getImportUpload

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="tasks" operations={[{"path":"/v1/imports/{id}/upload","method":"get"}]} />
    </>
  );
}
