PUT/api/v1/documents/{slug}/comments/{thread_id}/suggestion

Suggest an edit

Suggests text to replace the quote of a thread anchored to selected text. Anyone who can comment; replaces your own open suggestion. Returns the thread.

API token required60 per minute per IPMCP: suggest_edit

Guide: Suggested edits

Code samples and Try it

Path parameters

#
  • slugstringRequired

    The document's address: the part after markdrop.in/.

  • thread_idstringRequired

    Matches ^[0-9a-f]{24}$.

Headers

#
  • X-Read-Passwordstring

    The password of a password-protected document.

  • X-Markdrop-Workspacestring

    A workspace's id: answer only if the document is in that workspace, else 404. Workspace domains send it; you rarely need it.

Request body

#

application/json, required

  • textstringRequired

    1–5,000 characters.

  • aiboolean

    Default false.

Responses

#
  • 200OK.
  • 401No token, or the token is revoked or mistyped.
  • 409Someone else's suggestion is open on this thread, or the thread is resolved.
  • 422The thread isn't on selected text.
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?