code: def create(cls, data=None, api_key=None, endpoint=None, add_headers=None,
                 **kwargs):
          
          cls.validate(data)
          inst = cls(api_key=api_key)
          endpoint = ''
          return inst.request('POST',
                              endpoint=endpoint,
                              data=data,
                              query_params=kwargs,
                              add_headers=add_headers,
                              )
docs: Create an event on your PagerDuty account.