public function createRepositoryPermission(RepositoryPermission $permission)
    {
        $url = $this->service_url . '/permissions';
        $body = json_encode($permission);
        $response = $this->service->prepAndSend($url, array(201), 'POST', $body, true);
        return RepositoryPermission::createFromJSON($response);
    }