src/Jaspersoft/Service/UserService.php
public function addOrUpdateUser($user)
    {
            $url = self::makeUserUrl($user->tenantId, $user->username);
            $this->service->prepAndSend($url, array(200, 201), 'PUT', json_encode($user), true, 'application/json', 'application/json');
    }
public function addOrUpdateUser($user)
    {
            $url = self::makeUserUrl($user->tenantId, $user->username);
            $this->service->prepAndSend($url, array(200, 201), 'PUT', json_encode($user), true, 'application/json', 'application/json');
    }
public function addOrUpdateUser ( $ user ) { $ url = self :: makeUserUrl ( $ user -> tenantId , $ user -> username ) ; $ this -> service -> prepAndSend ( $ url , array ( 200 , 201 ) , 'PUT' , json_encode ( $ user ) , true , 'application/json' , 'application/json' ) ; }
Add or Update a user

@param \Jaspersoft\Dto\User\User
@throws \Jaspersoft\Exception\RESTRequestException
Add or Update a user