docs: def create_resource(self, url, data):
          """
          Shortcut for creating a new resource
          :return: The newly created resource as a Resource object
          """
          status_code, json_data = self.send_request(url, data, method='POST')
  
          if status_code != 201:
              msg = 'Expected 201 status code, got %s. Failed to create resource.'
              raise TagCubeAPIException(msg % status_code)
  
          try:
              return Resource(json_data)
          except KeyError:
              # Parse the error and raise an exception, errors look like:
              # {u'error': [u'The domain foo.com already exists.']}
              error_string = u' '.join(json_data['error'])
              raise TagCubeAPIException(error_string)