Request a file upload session for an owner contribution
Asks for a one-time upload slot for a file belonging to an owner contribution. Upload the file to the returned endpoint, then attach it with the add-files endpoint. Attachments may be images or PDFs of up to 20 MB.
Authorization
AuthorizationstringrequiredPath parameters
ownerContributionIdstringrequiredThe owner contribution. A Snowflake id sent as a decimal string.
Body
application/json
fileNamestringrequiredThe name to store the file under. 1 to 250 characters.
fileSizeintegerrequiredThe size of the file in bytes. Attachments are limited to 20 MB.
contentTypestringrequiredThe file's media type. Must be an image type or application/pdf.
Response
200 · The upload slot. Post the file to `endpoint` with `method`, including every entry in `fields` as a form field, before the session expires.
sessionIdstringThe session. Pass it to the add-files endpoint as uploadSessionId once the file has been uploaded.
endpointstringThe URL to upload the file to.
methodstringThe HTTP method to upload with.
fieldsobjectForm fields that must accompany the upload, as a name-to-value map. Send them exactly as given.
expiresstring · date-timeWhen the slot stops accepting the upload, in the company's timezone.