Reserve quota and presign a create-only upload
Each file id is granted once. Send the returned headers with the PUT; the URL signs the exact length and If-None-Match: *, so it can never replace stored bytes. Upload again under a new id.
POST
/api/admin/storage/upload-urlAuthorization
AuthorizationBearer token · headerrequiredRequest body
requiredapplication/jsonfileIdstringrequiredprefixstringrequiredAllowed:
servicescertificatescontentLengthintegerrequiredmin 1 · max 9007199254740991
Responses
200
Success
uploadUrlstringrequiredheadersobjectrequired401
Unauthorized
errorstringrequired409
Response for status 409
errorstringrequired413
Response for status 413
errorstringrequired422
Validation failed
typestringrequiredonstringrequiredsummarystringmessagestringfoundanypropertystringexpectedstring500
Unhandled server error
errorstringrequired