Movedigital.files.visibilityFile

From MoveDigital Docs

Set the visibility of your files.

Table of contents

Arguments

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

  • method (required) - Must be set to: movedigital.files.visibilityFile
  • 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 id of the file you wish to edit.
  • filevisibility (required) - The visibility level of this file: public, private, password or inactive.
  • filepassword (required/optional) - The password that should protect this file (required if filevisibility = 'password')

Example Responses

  • Success
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
	<method>movedigital.files.visibilityFile</method>
	<format>rest</format>
	<messages>
		<message msg="Successfully set visibility to 'unlisted'." />
	</messages>
</rsp>
  • Error
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
	<method>movedigital.files.visibilityFile</method>
	<errors>
		<error code="83" msg="This file is unable to be found." />
	</errors>
</rsp>

Error Codes

  • 83 - File not found.
  • 98 - Insufficient permissions.
  • 99 - User not signed in.
  • 106 - Some data was missing or invalid.
  • 108 - Internal error.
  • 109 - Service is currently unavailable.

Live REST Demo

Navigation