PUT
/
files
/
{id}
curl --request PUT \
  --url https://local.storage.nhost.run/v1/files/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'file=<any>' \
  --form 'metadata={
  "metadata": {},
  "name": "<string>"
}'
{
  "bucketId": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "eTag": "<string>",
  "id": "<string>",
  "isUploaded": true,
  "metadata": {},
  "mimeType": "<string>",
  "name": "<string>",
  "size": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "uploadedByUserId": "<string>"
}

Authorizations

Authorization
string
headerrequired

JSON Web Token to authorize requests.

Path Parameters

id
string
required

Body

multipart/form-data
file
any

New contents of the file to upload.

metadata
object

Response

200 - application/json
bucketId
string
createdAt
string
eTag
string
id
string
isUploaded
boolean
metadata
object
mimeType
string
name
string
size
number
updatedAt
string
uploadedByUserId
string