(self, user_ids, requester)
return self.pagerduty.request('PUT', path, data=_json_dumper(data), extra_headers=extra_headers)
Reassign this incident to a user or list of users

        :param user_ids: A non-empty list of user ids
        :param requester: The email address of individual requesting reassign
Reassign this incident to a user or list of users
Reassign this incident to a user or list of users
def reassign(self, user_ids, requester):
        """Reassign this incident to a user or list of users

        :param user_ids: A non-empty list of user ids
        :param requester: The email address of individual requesting reassign
        """
        path = '{0}'.format(self.collection.name)
        assignments = []
        if not user_ids:
            raise Error('Must pass at least one user id')
        for user_id in user_ids:
            ref = {
                "assignee": {
                    "id": user_id,
                    "type": "user_reference"
                }
            }
            assignments.append(ref)
        data = {
            "incidents": [
                {
                    "id": self.id,
                    "type": "incident_reference",
                    "assignments": assignments
                }
            ]
        }
        extra_headers = {"From": requester}
        return self.pagerduty.request('PUT', path, data=_json_dumper(data), extra_headers=extra_headers)
def reassign ( self , user_ids , requester ) : path = '{0}' . format ( self . collection . name ) assignments = [ ] if not user_ids : raise Error ( 'Must pass at least one user id' ) for user_id in user_ids : ref = { "assignee" : { "id" : user_id , "type" : "user_reference" } } assignments . append ( ref ) data = { "incidents" : [ { "id" : self . id , "type" : "incident_reference" , "assignments" : assignments } ] } extra_headers = { "From" : requester } return self . pagerduty . request ( 'PUT' , path , data = _json_dumper ( data ) , extra_headers = extra_headers )