API documentation
    API documentation
    • Back to home
    • File
    • List
      GET
    • Detail
      GET
    • Upload
      PUT
    • Update
      PUT
    • Download
      GET
    • Delete
      DELETE
    • Public Download
      GET
    • Share file with user
      PUT
    • Move file
      POST
    • Copy file
      POST

      Move file

      POST
      https://api.everabyte.io/api/files/move/yeovwf96jr82gfdd5luahjia
      Endpoint: /files/move/{fileId}
      Method: POST

      Path Parameters#

      fileId (required, string): The unique identifier of the file to be moved.

      Request Body Parameters#

      {
        "destinationFolderId": "destinationFolderId"
      }
      destinationFolderId (required, string): The unique identifier of the folder where the file will be moved.

      Example Request#

      POST /files/move/abc123def456
      Content-Type: application/json
      
      {
        "destinationFolderId": "folder789xyz"
      }

      Response Codes#

      200 OK: File successfully moved to the destination folder.
      400 Bad Request: Invalid request body or missing destinationFolderId.
      401 Unauthorized: The current user is not authorized to move this file.
      404 Not Found: File or destination folder not found.
      500 Internal Server Error: Unexpected server error.

      Request

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

      Request Code Samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.everabyte.io/api/files/move/yeovwf96jr82gfdd5luahjia' \
      --header 'Authorization: Bearer <token>'

      Responses

      🟢200Success
      application/json
      Body

      Example
      {}
      Modified at 2025-11-22 18:06:18
      Previous
      Share file with user
      Next
      Copy file
      Built with