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>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| id | path | string | 是 | 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. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 204 | The share is revoked; there is no body. | |
| 401 | application/json | The bearer API key is missing or invalid; provide a valid Praxis API key before retrying. |
| 403 | application/json | PERMISSION_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. |
| 404 | application/json | PERMISSION_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. |
| 500 | application/json | INTERNAL 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. |