Movedigital.files.renameFile

From MoveDigital Docs

Table of contents

Arguments

Calls are POSTed to http://www.movedigital.com/services/rest/ and should include the following arguments

  • method (required) - Must be set to: movedigital.files.renameFile
  • userid (required) - The userid of the MoveDigital account.
  • sessionid (required) - The sessionid for the current session.
  • session (required) - The session value for the associated sessionid.
  • fileid (required) - The fileid you wish to rename.
  • filename (required) - The new name you wish to give the file.

Example Responses

  • Success
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
	<method>movedigital.files.renameFile</method>
	<format>rest</format>
	<messages>
		<message msg="Successfully renamed file." />
	</messages>
</rsp>
  • Error
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
	<method>movedigital.files.renameFile</method>
	<errors>
		<error code="85" msg="Cannot rename this file while its in a torrent." />
	</errors>
</rsp>

Error Codes

  • 82 - Another file in this folder already has this name.
  • 83 - File not found.
  • 85 - Action denied while in torrent.
  • 98 - Insufficient permissions.
  • 99 - User not signed in.
  • 108 - Internal error.
  • 109 - Service is currently unavailable.

Live REST Demo

Navigation