anchor.diff:  							UserUpdate = lib_json:set_attrs([{"script",list_to_binary("ctx._source.triggers += newelement")},
   															 {"params","{}"},{"params.newelement","{}"},
   															 {"params.newelement.function",list_to_binary(Function)}, {"params.newelement.input",Input},
  -															 {"params.newelement.streams",Streams},{"params.newelement.streams",VirtualStreams},
  +															 {"params.newelement.streams",Streams},{"params.newelement.vstreams",VirtualStreams},
   															 {"params.newelement.output_type",list_to_binary("user")},{"params.newelement.output_id",list_to_binary(Username)}]),
   							case api_help:update_doc(?INDEX, "user", Username, UserUpdate) of
   								{error, {UPCode, UPBody}} -> 
  
positive.code: 					UserUpdate = lib_json:set_attrs([{"script",list_to_binary("ctx._source.triggers += newelement")},
  													 {"params","{}"},{"params.newelement","{}"},
  													 {"params.newelement.function",list_to_binary(Function)}, {"params.newelement.input",Input},
  													 {"params.newelement.streams",Streams},{"params.newelement.streams",VirtualStreams},
  													 {"params.newelement.output_type",list_to_binary("uri")},{"params.newelement.output_id",list_to_binary(URI)}]),
  					case api_help:update_doc(?INDEX, "user", User, UserUpdate) of
  						{error, {UPCode, UPBody}} -> 
  
negative.code: allowed_methods(ReqData, State) ->
  	case api_help:parse_path(wrq:path(ReqData)) of
  	    [{"users", _UserID},{"streams",_StreamId},{"triggers"}] ->
  		{['GET'], ReqData, State};
  		[{"users", _UserID},{"vstreams",_VStreamId},{"triggers"}] ->
  		{['GET'], ReqData, State};
  	    [{"users", _UserID},{"triggers",_Action}] ->
  		{['POST'], ReqData, State};
  