Renaming a file in a transfer
put
Renames an existing file in a transfer. File names include their relative paths inside a transfer e.g. /path/to/file.pdf. When renaming a file it is required to provide a new relative path. To only rename /path/to/file.pdf without changing its logical location specify /path/to/new_file.pdf.
Body
fileKeystring · min: 1Required
File key / identifier which can be obtained from GET /transfer request. Every file in the transfer response includes its unique identifier under fileid property.
newFileNamestring · min: 1 · max: 2000Required
New relative path and name of the file within the transfer.
Responses
200
OK
400
Bad Request
401
Unauthorized
put
/transfer/file/renamePUT /transfer/file/rename HTTP/1.1
Host: api-public.filemail.com
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 39
{
  "fileKey": "text",
  "newFileName": "text"
}{
  "responsestatus": "OK",
  "errorid": "text",
  "errormessage": "text",
  "data": {
    "fileName": "text"
  },
  "errorcode": 1
}Last updated
Was this helpful?
