def create(self, typ, data, return_response=False):
res = self._request(typ, method='<STR_LIT:POST>', data=data)<EOL>if res.status_code != <NUM_LIT>:<EOL><INDENT>try:<EOL><INDENT>data = res.json()<EOL>self._throw(res, data)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>if not isinstance(e, InvalidRequestException):<EOL><INDENT>self._throw(res, {})<EOL><DEDENT>else:<EOL><INDENT>raise<EOL><DEDENT><DEDENT><DEDENT>loc = res.headers.get("<STR_LIT:location>", None)<EOL>if loc and loc.startswith('<STR_LIT:/>'):<EOL><INDENT>return self._load(self._request(None, url=self.url_update(path=loc)))<EOL><DEDENT>if return_response:<EOL><INDENT>return res.json()<EOL><DEDENT>return self._load(self._request(None, url=loc))<EOL>
Create new type
Valid arguments:
    skip : number of records to skip
    limit : number of records to limit request to