anchor.diff:                      end;
                   true ->
                       erlang:display("SUBSCRIPTION!"),
  -                    Id = id_from_path(ReqData),
  +                    Id = api_help:id_from_path(ReqData),
                       {Json,_,_} = api_help:json_handler(ReqData,State),
                       StreamId = case lib_json:get_field(Json,"stream_id") of
                           undefined ->
  
positive.code: %% @end
  -spec put_user(ReqData::tuple(), State::string()) -> {true, tuple(), string()}.
  put_user(ReqData, State) ->
      case openidc:authenticate_request(ReqData) of
          {error, Msg} -> {{halt, 403}, wrq:set_resp_body(Msg, ReqData), State};
          {ok, Token} ->
              case api_help:is_subs(ReqData) or api_help:is_unsubs(ReqData) of
                  false ->
                      Id = id_from_path(ReqData),
                      {UserJson,_,_} = api_help:json_handler(ReqData, State),
                      %check if doc already exists
                      case {api_help:do_any_field_exist(UserJson,?RESTRCITEDUPDATEUSERS),api_help:do_only_fields_exist(UserJson,?ACCEPTEDFIELDSUSERS)} of
  
negative.code:         end.
  
  
  %% @doc
  %% Function: add_server_side_fields/1
  %% Purpose: Used to add all the fields that should be added server side
  