def METHOD_NAME(self):
    path = self.path('file')
    open(path, 'w').close()
    os.chmod(path, 0o765)
    rq = requests.post(
        f'{url}/api/filesystem/chmod/{path}',
        data=json.dumps({'mode': 0o767})
    )
    assert rq.status_code == 200
    assert os.stat(path).st_mode, 0o100767