Collections
Import documents into a new collection
Changed onImport a file that was previously uploaded through attachments.create and create a new collection from its contents. The endpoint returns a FileOperation that can be queried to track the progress of the import.
post/collections.import
Request
- Base URLhttps://app.getoutline.com/api
- URLhttps://app.getoutline.com/api/collections.import
- Auth
- HTTP bearer
- or OAuth 2Authorization code: https://app.getoutline.com/oauth/authorizeToken URL: https://app.getoutline.com/oauth/token scopes: read, write
Request body
Response
OK
Example response
{
"data": {
"fileOperation": {
"type": "export",
"format": "outline-markdown",
"state": "complete",
"size": "2048",
"user": {
"name": "Jane Doe"
}
}
}
}Changes
- info
endpoint added
- info