> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dataerai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Put apiassets markdown note

> Single free-form markdown note per asset.

Permissions reuse the existing ``READ_NOTES`` / ``WRITE_NOTES`` flags —
callers who can already see comments on the asset can also see this note.

PUT semantics: idempotent upsert. The first PUT on an asset creates the
note (201) and stamps ``author = request.user``. Subsequent PUTs update
only the ``content`` field (200) and **do NOT refresh the author**.
Authorship records who originally wrote the note, not who last edited it
— preserving history of who introduced the content. If a per-edit author
trail becomes a requirement, add an ``updated_by`` FK; do not silently
overwrite ``author`` on edit.



## OpenAPI

````yaml /api-reference/openapi.yaml put /api/assets/{id}/markdown-note/
openapi: 3.0.3
info:
  title: Console API
  version: 1.0.0
  description: Central control plane API for the Dataerai platform.
servers:
  - url: https://{server}
    description: Your Dataerai deployment (the API is served under /api)
    variables:
      server:
        default: your-deployment.dataerai.com
        description: Host of your Dataerai deployment
security: []
paths:
  /api/assets/{id}/markdown-note/:
    put:
      tags:
        - api
      description: >-
        Single free-form markdown note per asset.


        Permissions reuse the existing ``READ_NOTES`` / ``WRITE_NOTES`` flags —

        callers who can already see comments on the asset can also see this
        note.


        PUT semantics: idempotent upsert. The first PUT on an asset creates the

        note (201) and stamps ``author = request.user``. Subsequent PUTs update

        only the ``content`` field (200) and **do NOT refresh the author**.

        Authorship records who originally wrote the note, not who last edited it

        — preserving history of who introduced the content. If a per-edit author

        trail becomes a requirement, add an ``updated_by`` FK; do not silently

        overwrite ``author`` on edit.
      operationId: asset_markdown_note_upsert
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssetMarkdownNoteWrite'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AssetMarkdownNoteWrite'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AssetMarkdownNoteWrite'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetMarkdownNote'
          description: ''
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssetMarkdownNote'
          description: ''
      security:
        - cookieAuthCsrfExempt: []
components:
  schemas:
    AssetMarkdownNoteWrite:
      type: object
      properties:
        content:
          type: string
          maxLength: 1048576
      required:
        - content
    AssetMarkdownNote:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        author:
          allOf:
            - $ref: '#/components/schemas/NoteAuthor'
          readOnly: true
        content:
          type: string
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
      required:
        - author
        - content
        - created_at
        - id
        - updated_at
    NoteAuthor:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          readOnly: true
        email:
          type: string
          format: email
          readOnly: true
      required:
        - email
        - id
        - name

````