code: def create(cls, service=None, endpoint=None, data=None, *args, **kwargs):
          
          cls.validate(data)
  
          if service is None and endpoint is None:
              raise InvalidArguments(service, endpoint)
          if endpoint is None:
              sid = service['id'] if isinstance(service, Entity) else service
              endpoint = 'services/{0}/integrations'.format(sid)
  
          # otherwise endpoint should contain the service path too
          return getattr(Entity, 'create').__func__(cls, endpoint=endpoint,
                                                    data=data, *args, **kwargs)
docs: Create an integration within the scope of an service.
  
          Make sure that they should reasonably be able to query with an
          service or endpoint that knows about an service.