Publish File

Summary Publishes a file and returns the public url of the file that can be used to access the file
Request https://www.digitalbucket.net/api/rest/publishfile.axd?fileid=bd64d349-d584-45f3-a0fb-287bcb66fb34
Method POST
Parameters fileid (id of the file you want to publish)

Success

<Success>
  <Code>51</Code>
  <Message>[public url of the published file]</Message>
</Success>

Error

<Error>
  <Code>-501</Code>
  <Message>You are not allowed to publish this file.</Message>
</Error>
<Error>
  <Code>-502</Code>
  <Message>You are not allowed to publish other user's files.</Message>
</Error>

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