PUT/api/v1/documents/{slug}/access/level

Set who can open it

Sets a document's access level. Narrowing it takes effect at once, for every address the document has.

API token required60 per minute per IPMCP: set_access

Guide: Who can open a document

Code samples and Try it

Path parameters

#
  • slugstringRequired

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

Request body

#

application/json, required

  • level"private" | "link" | "workspace"Required

    link (anyone with the link), private (only the people you share it with) or workspace (members of its workspace).

Responses

#
  • 204No content.
  • 401No token, or the token is revoked or mistyped.
  • 422The request didn't validate. detail lists each problem, with where it is (loc) and why (msg).
  • 429Too many requests from your IP address. Wait the seconds in Retry-After.
Did this page help?