PUT
/
organizations
/
{organization_name}
/
files
/
{filename+}
Upload a file
curl --request PUT \
  --url https://storage-api.salad.com/organizations/{organization_name}/files/{filename+} \
  --header 'Content-Type: multipart/form-data' \
  --header 'Salad-Api-Key: <api-key>' \
  --form 'mimeType=<string>' \
  --form 'sign=<string>' \
  --form 'signatureExp=<string>' \
  --form file=@example-file
{
  "url": "<string>"
}
Last Updated: October 04, 2024

Authorizations

Salad-Api-Key
string
header
required

Path Parameters

organization_name
string
required
filename+
string
required

Body

multipart/form-data
file
file

The file to upload

mimeType
string

The MIME type of the file

sign
string

"true" to return a signed url

signatureExp
string

The expiration ttl of the signature in seconds. Default is 30 days.

Response

200 - application/json

File uploaded successfully

url
string<uri>