跳转到内容
EN

Delete share

Code Mode: praxis.share.permissions.delete

HTTP: DELETE /share/v1/permissions/{id}

Take a link back so nobody can open it again. This revokes the share, the record stays readable with status revoked, and opening the link answers 410. Repeating the call on a revoked share is harmless and answers 204 again. Content addresses already signed when the link was opened expire on their own within five minutes. Take the id from shares.create or shares.list.

签名

praxis.share.permissions.delete(args:{path:{/** e.g. "shr_0123456789abcdef0123456789abcdef" */ id:string}}):Promise<unknown>;

参数

名称位置类型必填说明
idpathstring是Share id returned by shares.create or shares.list, in the form shr_ followed by 32 lowercase letters or digits; a link address is not accepted.

响应

状态码内容类型说明
204The share is revoked; there is no body.
401application/jsonThe bearer API key is missing or invalid; provide a valid Praxis API key before retrying.
403application/jsonPERMISSION_DENIED means the credential cannot perform this operation, or is bound to specific files and listed without naming one; use a key with share access, or pass resource_type and resource_id of a bound file.
404application/jsonPERMISSION_NOT_FOUND means the share does not exist in this organization, or the credential is not bound to its file; list shares to find an id you can reach.
500application/jsonINTERNAL means the service could not complete the request; for a create, list shares for the file before retrying so the same object is not exposed twice.