Skip to content

Upload a file

POST
/api/v1/files/upload
curl --request POST \
--url 'http://127.0.0.1:58259/api/v1/files/upload?libraryId=1&pathId=1' \
--header 'Content-Type: multipart/form-data' \
--form file=@file

Upload a file to a specific library and path. Requires upload permission or admin.

libraryId
required
integer format: int64

Library ID

pathId
required
integer format: int64

Path ID

Media type multipart/form-data
object
file
required

File to upload

string format: binary

File uploaded successfully

Media type */*
object