Get File

Summary Changes the name of a file
Request https://www.digitalbucket.net/api/rest/renamefile.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34&newname=SC02.jpg
Method POST
Parameters fileid (id of the file you want to rename), newname (the name that you want to change to)

Success

<Success>
  <Code>21</Code>
  <Message>file name changed to [newname] successfully.</Message>
</Success>

Error

<Error>
  <Code>-203</Code>
  <Message>You are not allowed to rename this file.</Message>
</Error>
<Error>
  <Code>-224</Code>
  <Message>Invalid file name.</Message>
</Error>
<Error>
  <Code>-225</Code>
  <Message>A file with the same name already exists.</Message>
</Error>

- For other errors refer to the list of Common Errors.