PUT
/api/v1/documents/{slug}/comments/{thread_id}/suggestionSuggest 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.
Guide: Suggested edits
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.thread_idstringRequiredMatches
^[0-9a-f]{24}$.
Headers
#X-Read-PasswordstringThe password of a password-protected document.
X-Markdrop-WorkspacestringA 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
textstringRequired1–5,000 characters.
aibooleanDefault
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 inRetry-After.