Un-Publish File

Summary Makes a published file private
Request https://www.digitalbucket.net/api/rest/unpublishfile.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34
Method POST
Parameters fileid (id of the file you want to un-publish)

Success

<Success>
  <Code>51</Code>
  <Message>[filename] un-published successfully.</Message>
</Success>

Error

<Error>
  <Code>-505</Code>
  <Message>You are not allowed to un-publish this file.</Message>
</Error>

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