Skip to main content
PUT
/
journals
/
editor
/
import_from_markdown
Import From Markdown
curl --request PUT \
  --url https://api.example.com/journals/editor/import_from_markdown \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "markdown": "<string>",
  "title": "Imported Journal",
  "team_slug": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "journal_id": "<string>",
  "journal_url": "<string>",
  "timestamp": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request model for importing a journal from markdown.

markdown
string
required

The markdown content to import.

title
string | null
default:Imported Journal

The title of the journal, if you want to provide one.

team_slug
string | null

The team slug that the journal is associated with

Response

Successful Response

Response model for importing a journal from markdown.

success
boolean
required
message
string | null
journal_id
string | null
journal_url
string | null
timestamp
string