PUT
/api/v1/documents/{slug}/access/levelSet who can open it
Sets a document's access level. Narrowing it takes effect at once, for every address the document has.
Guide: Who can open a document
Code samples and Try itPath parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Request body
#application/json, required
level"private" | "link" | "workspace"Requiredlink(anyone with the link),private(only the people you share it with) orworkspace(members of its workspace).
Responses
#204No content.401No token, or the token is revoked or mistyped.422The request didn't validate.detaillists each problem, with where it is (loc) and why (msg).429Too many requests from your IP address. Wait the seconds inRetry-After.