/api/v1/artifacts/{slug}Update a file's settings
Changes a file's title, password or expiry. Every field is optional. The owner may change all of them; editors may change the title.
Path parameters
#slugstringRequiredThe document's address: the part after
markdrop.in/.
Request body
#application/json, required
titlestringShown on the page and in link previews. Up to 200 characters.
read_passwordstringReaders must enter this password before they see the content. Up to 100 characters.
remove_passwordbooleantrueremoves the password. Defaultfalse.expires_in"never" | "1h" | "1d" | "7d" | "30d" | "custom"When the document is deleted.
customneedscustom_expires_at.custom_expires_atstring (date-time)The deletion time, when
expires_iniscustom. Must be in the future. ISO 8601, for example2026-11-30T12:00:00Z.
Responses
#200OK.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.
200 response: 20 fields (ArtifactResponse)
slugstringurlstringtitlestring | nullShown on the page and in link previews.
kindstringDefault
"artifact".mimestringrendererstringtype_labelstringsize_bytesintegeroriginal_filenamestring | nullartifact_urlstringworkspace_urlstring | nulldownload_urlstringposter_urlstring | nullmediaobject | nullcreated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.updated_atstring (date-time)ISO 8601, for example
2026-11-30T12:00:00Z.expires_atstring (date-time) | nullISO 8601, for example
2026-11-30T12:00:00Z.viewsintegerDefault
0.is_password_protectedbooleanDefault
false.is_ownerbooleanDefault
false.