CreateLock

Lock a specific path

Authentication Methods


  1. With a username and password
Input Parameter Type Description
Token String Security token
FileserverName String FileServer name (NMSA)
Path String Path of the file
Duration Integer Number of seconds to lock a file, maximum 8 hours
LocationID String Identifier for the device/location
Output Parameter Type Description
Success Status Returns status code

CURL EXAMPLE

curl -v 'https://storage.example.com/storage/api.php?Token=ms28lbbsql627i3ftmoq2j00q2&Task=CreateLock&FileserverName=nmsa000002&Path=/mydirectory/myfile.txt&LocationID=c7260610-c529-b2bf-6b3e-16ec2882f3d1'

Response

<Response>
    <Status>1</Status>
    <Message></Message>
</Response>