Git

删除提交附件。Delete commit asset.

删除指定提交下的单个附件。操作成功后返回 204 无内容响应。 Delete a single asset from the specified commit. Returns 204 No Content on success. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw

delete/{repo}/-/git/commit-assets/{sha1}/{asset_id}

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/git/commit-assets/{sha1}/{asset_id}
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

sha1string required

提交的哈希值。Commit hash.

asset_idstring required

附件唯一标识符。Attachment unique identifier.

Response

No Content

Changes

No recorded changes to this operation across all 1 revision of this API.