def post(self, params=None):
        """
        Create a new resource.

        Required Arguments:

            params
                A dictionary of parameters (different for every resource).

        """
        if params is None:
            params = {} # pragma: no cover

        params = self.filter(params)
        path = self.path % '/%s'

        try:
            response = self.api.make_request('POST', path, self.filter(params))
        except exc.dRestRequestError as e:
            msg = "%s (resource: %s)" % (e.msg, self.name)
            raise exc.dRestRequestError(msg, e.response)

        return response
dataset/ETHPy150Open datafolklabs/drest/drest/resource.py/RESTResourceHandler.post/swapped operands of `%`