def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def create(params, env=None, headers=None):
        return request.send('post', request.uri_path("plans"), params, env, headers)