@jsexpose(status_code=http_client.OK)
    def post(self, trigger_instance_id):
        # Note: We only really need parameters here
        existing_trigger_instance = self._get_one(id=trigger_instance_id)

        new_payload = copy.deepcopy(existing_trigger_instance.payload)
        new_payload['__context'] = {
            'original_id': trigger_instance_id
        }

        try:
            self.trigger_dispatcher.dispatch(existing_trigger_instance.trigger,
                                             new_payload)
            return {
                'message': 'Trigger instance %s succesfully re-sent.' % trigger_instance_id,
                'payload': new_payload
            }
        except Exception as e:
            abort(http_client.INTERNAL_SERVER_ERROR, str(e))
Convert a uid to a user name
dataset/ETHPy150Open StackStorm/st2/st2api/st2api/controllers/v1/triggers.py/TriggerInstanceResendController.post--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/win_file.py/uid_to_user