---
title: "POST /#X-Amz-Target=AmazonAthena.ExportNotebook"
method: POST
path: "/#X-Amz-Target=AmazonAthena.ExportNotebook"
---

# POST /#X-Amz-Target=AmazonAthena.ExportNotebook

`POST /#X-Amz-Target=AmazonAthena.ExportNotebook`

Exports the specified notebook and its metadata.

## Headers

- `X-Amz-Target` 'AmazonAthena.ExportNotebook', required

## Request body

- ExportNotebookInput
  - `NotebookId` string, required — The ID of the notebook to export.

## Response `200`

Success

- ExportNotebookOutput
  - `NotebookMetadata` object — The notebook metadata, including notebook ID, notebook name, and workgroup name.
    - `NotebookId` string — The notebook ID.
    - `Name` string — The name of the notebook.
    - `WorkGroup` string — The name of the Spark enabled workgroup to which the notebook belongs.
    - `CreationTime` string, date-time — The time when the notebook was created.
    - `Type` 'IPYNB' — The type of notebook. Currently, the only valid type is <code>IPYNB</code>.
    - `LastModifiedTime` string, date-time — The time when the notebook was last modified.
  - `Payload` string — The content of the exported notebook.

## Other responses

- `480` — InternalServerException
- `481` — InvalidRequestException
- `482` — TooManyRequestsException

---

[API](https://skmtc.net/aws/apis/athena.md) · [All operations](https://skmtc.net/aws/apis/athena/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/athena/versions/0aec8c61283d/schema)
