Attachments
Stream attachment bytes into a reservation
Uploads the exact reserved byte count as an unencoded stream. Content-Length is required; Transfer-Encoding is not accepted. Requires authenticated authority and enforces current resource policy.
put/api/repos/{owner}/{repo}/attachments/{attachment}
Request
- Base URLhttps://git.cafe
- Auth
- API key in cookie gc-session
- or HTTP bearer
- or HTTP basic
- or HTTP token
- or OAuth 2Authorization code: /api/oauth/authorizeToken URL: /api/oauth/token scopes: repo:attachments:write
Path parameters
ownerstring required
repostring required
attachmentstring required
Headers
Content-Lengthinteger required
Decimal byte count, from 1 through 10485760.
Request body application/octet-stream
string binary required
Response
Response for status 200
Changes
No recorded changes to this operation across all 1 revision of this API.