Markdowns

Create a markdown library item

Changed on

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/markdowns</span></div>

Refer to Spaces for more information.

Creates a new markdown library item and returns its ID, full state, and metadata.

post/api/markdowns

Request

  • Base URL
    https://localhost:5601
  • URL
    https://localhost:5601/api/markdowns
  • Auth
    • API key in header Authorization
    • or HTTP basic

Headers

kbn-xsrfstring required
Example:true

A required header to protect against CSRF attacks

Request body

contentstring required

The Markdown text rendered by the panel. Supports GitHub-flavored Markdown, including headings, paragraphs, lists, links, images, tables, blockquotes, and code blocks. Use \n for line breaks within JSON strings.

descriptionstring

A short description of the markdown library item.

titlestring required

The markdown library item title.

Response

created

idstring required

The unique ID of the markdown library item, as returned by the create or search endpoints.

Changes

    • breaking

      the response property / became optional for the status

    • info

      the request property became optional

    • info

      the request property default value {"open_links_in_new_tab":true} was added

    • info

      the response's property default value {"open_links_in_new_tab":true} was added for the status