Hi,
I'm trying to change permissions on a dataset using the API and I'm having trouble. I'm getting a '201 CREATED' response from the server, but the permissions don't change. Can anyone help me? Is this a bug?
Here's the request in python:
r = requests.put("freenasServer/api/v1.0/storage/permission/",
)
Note that the server name should have an h++p protocol prefix, but this forum wont let me post anything that looks remotely like a url. #sneakyurls
I'm trying to change permissions on a dataset using the API and I'm having trouble. I'm getting a '201 CREATED' response from the server, but the permissions don't change. Can anyone help me? Is this a bug?
Here's the request in python:
r = requests.put("freenasServer/api/v1.0/storage/permission/",
auth = ( "root", self._password ),
headers = { "Content-Type": "application/json" },
verify = False,
data = json.dumps({ "mp_path": "/mnt/myVolume/users/home1/apiTest",
headers = { "Content-Type": "application/json" },
verify = False,
data = json.dumps({ "mp_path": "/mnt/myVolume/users/home1/apiTest",
"mp_acl": "unix",
"mp_mode": "755",
"mp_user": "myUser",
"mp_group": myGroup" })
"mp_mode": "755",
"mp_user": "myUser",
"mp_group": myGroup" })
Note that the server name should have an h++p protocol prefix, but this forum wont let me post anything that looks remotely like a url. #sneakyurls
Last edited: