storage

Upload file

Upload a file to storage. Admins can upload to any user's path. Otherwise the path must belong to the current user.

post/api/storage/upload

Query parameters

file_pathstring required

Full path where to save the file (e.g., users/{user_id}/files/documents/consent.pdf)

Full path where to save the file (e.g., users/{user_id}/files/documents/consent.pdf)

replace_existingboolean

If true, replace existing file

If true, replace existing file

Response

Successful Response

file_pathstring required

Path to uploaded file in storage

titlestring nullable

Success title

messagestring

Success message

Example response

{
  "file_path": "users/123e4567-e89b-12d3-a456-426614174000/avatar/profile_photo.jpg",
  "message": "File caricato con successo"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.