Revoke a share link
DELETE
The link stops working immediately (410 Gone).
header
AuthorizationBearer <token>Authorization: Bearer dr_live_… or dr_test_…
id*stringOK
application/json- response
id*stringobject*unknowndocument*stringurl*|The public link. Returned only when the link is created: Druckling keeps a hash of it, not the link itself.
hint*stringLast four characters of the link, to tell links apart.
status*stringValue in
"active""expired""revoked"expires_at*stringFormat
date-timerevoked_at*|nulltest_mode*booleancreated_at*stringFormat
date-timecurl -X DELETE 'https://druckling-nine.vercel.app/v1/documents/string/share_links/string'Example Response200
{ "id": "string", "object": "share_link", "document": "string", "url": "string", "hint": "string", "status": "active", "expires_at": "2019-08-24T14:15:22Z", "revoked_at": "2019-08-24T14:15:22Z", "test_mode": true, "created_at": "2019-08-24T14:15:22Z"}