Replace the contents of an existing file
curl --request PUT \ --url https://local.storage.local.nhost.run/v1/files/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'metadata={ "name": "<string>", "metadata": {} }' \ --form 'file=<any>'
{ "id": "<string>", "name": "<string>", "size": 123, "bucketId": "<string>", "eTag": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "isUploaded": true, "mimeType": "<string>", "uploadedByUserId": "<string>", "metadata": {} }
JSON Web Token to authorize requests.
Show child attributes
New contents of the file to upload.