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

      Update

      Prod
      https://api.everabyte.io/api
      Prod
      https://api.everabyte.io/api
      PUT
      https://api.everabyte.io/api
      /files/update/b5h86j5dkl7m0rnylnkt3kfh
      This endpoint is used to update the metadata of a specific file.
      Endpoint: /files/update/{fileId}
      Method: PUT
      Path Parameters:
      fileId (required): The ID of the file to be updated. Example: b5h86j5dkl7m0rnylnkt3kfh
      Request Body Parameters:
      {
        "name": "Doc NDA",
        "isShare": true,
        "isPrivate": true
      }
      name (required, string): The new name of the file.
      isShare (optional, boolean): Indicates whether the file is shared.
      isPrivate (optional, boolean): Indicates whether the file is private.
      Example Request:
      PUT /files/update/b5h86j5dkl7m0rnylnkt3kfh
      Content-Type: application/json
      
      {
        "name": "Updated NDA Document",
        "isShare": false
      }
      This request updates the file with ID b5h86j5dkl7m0rnylnkt3kfh. The file's name is changed to "Updated NDA Document", and it is marked as not shared. Because isPrivate is not provided, it remains unchanged.
      Response Codes:
      200 OK: File metadata successfully updated.
      400 Bad Request: Invalid request parameters or body.
      404 Not Found: File not found.
      500 Internal Server Error: Server error.

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json
      name
      string 
      required
      isShare
      boolean 
      optional
      isPrivate
      boolean 
      optional
      Example
      {
        "name": "Dr. Cory Quigley",
        "isShare": true,
        "isPrivate": false
      }

      Request 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 PUT 'https://api.everabyte.io/api/files/update/b5h86j5dkl7m0rnylnkt3kfh' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "name": "Dr. Cory Quigley",
          "isShare": true,
          "isPrivate": false
      }'

      Responses

      🟢200Success
      application/json
      Body
      object {0}
      Example
      {}
      Previous
      Upload
      Next
      Download
      Built with