createRepoAttachmentBlob
Create an attachment blob for a file of the given name, media type, and size, and answer the signed URLs to send its bytes to storage: one PUT up to 16 MiB, and parts past that. An attachment field takes its id as {"id":…}, and a binary extension file as its "attachment_blob_id".
POST
/repos/{repo_id}/attachment-blobsPath parameters
Request body JSON required
Returns
201
AttachmentBlobUpload
400
InvalidRequest | RequestBodyTooDeep
JSON
One of the following:
- InvalidRequestEncoded
- RequestBodyTooDeepEncoded
402
StorageLimitReached
403
Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenEncoded
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
413
WriteTooLarge | RequestBodyTooLarge
JSON
One of the following:
- WriteTooLargeEncoded
- RequestBodyTooLargeEncoded
500
AttachmentUrlFailed | RepoFailure
JSON
One of the following:
- AttachmentUrlFailedEncoded
- RepoFailureEncoded
503
AttachmentStorageUnavailable | RepoBusy | SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- AttachmentStorageUnavailableEncoded
- RepoBusyEncoded
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded