1. files
Api
  • v1
    • files
      • upload
        POST
      • remove
        DELETE
      • findOne
        GET
      • update
        PATCH
      • download
        GET
    • dirs
      • findOne
      • remove
      • update
      • download
      • create
      • listItems
    • auth
      • login
      • register
    • usage
      GET
  • Schemas
    • v1
      • common
        • ErrorResponse
      • files
        • File
        • UpdateFileRequest
      • dirs
        • CreateDirectoryRequest
        • Directory
        • DirectoryItem
        • UpdateDirectoryRequest
      • auth
        • RegisterUserRequest
        • LoginUserRequest
        • RegisterUserResponse
        • LoginUserResponse
      • usage
  1. files

update

Developing
PATCH
/v1/files/{id}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🔴500InternalServerError
🟠403ForbiddenError
🟠401UnauthorizedError
🟠400BadRequestError
🟠404NotFoundError
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'http://localhost:8080/v1/files/{{$string.uuid}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "directoryId": "string",
    "name": "string"
}'
Response Response Example
200 - Example 1
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "userId": "string",
    "directoryId": "string",
    "name": "string",
    "size": 0
}
Modified at 2026-03-25 09:17:11
Previous
findOne
Next
download
Built with