File

Copies a file synchronously.

Changed on

Copies a file synchronously.

post/v2/accounts/{accountId}/files/copy

Request

Path parameters

accountIdstring required

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example:A623uY2

Request body

destinationstring required

Absolute path to a file. Begins with a /.

sourcestring required

Absolute path to a file. Begins with a /.

Example request

{
  "destination": "/destination/file.txt",
  "source": "/source/file.txt"
}

Response

Success.

status'Copied' required

Changes

    • warning

      removed the request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      removed the FileNotFound enum value from the response property for the response status

    • info

      removed the SkippedDueToCondition enum value from the response property for the response status