Attachments

Cancel an attachment upload

Cancels an unfinished reservation and returns its recovery state; already completed storage is reported rather than discarded. Requires authenticated authority and enforces current resource policy.

post/api/repos/{owner}/{repo}/attachments/{attachment}/cancel

Request

  • Base URL
    https://git.cafe
  • Auth
    • API key in cookie gc-session
    • or HTTP bearer
    • or HTTP basic
    • or HTTP token
    • or OAuth 2
      Authorization code: /api/oauth/authorize
      Token URL: /api/oauth/token scopes: repo:attachments:write

Path parameters

ownerstring required
repostring required
attachmentstring required

Response

Response for status 200

idstring required
state'reserved' | 'writing' | 'ready' | 'deleting' | 'deleted' | 'rejected' required
sizeinteger required
contentType'image/png' | 'image/jpeg' | 'image/gif' | 'image/webp' | 'null' nullable required
cancelRequestedboolean required
nativeClosure'unstarted' | 'completed' | 'not-written' | 'unknown' required
expiredboolean required
nextAction'upload' | 'cancel' | 'reconcile' | 'delete' | 'await-native-closure' | 'none' required
custody'reserved' | 'used' | 'released' required

Changes

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