I have a defined a TikZ style "midcircle" that decorates a path with, say, a small circle in the middle (with the decorations.markings library, setting "pos=0.5"). E.g.
\draw (0,0)edge[midcircle](1,0);
would draw a straight line with a circle in the middle. Now I would like to be able to change the position of the circle by defining another style, say "midcirclepos", such that e.g.
\draw (0,0)edge[midcircle,midcirclepos=0.7](1,0);
would draw the circle at "pos=0.7" instead "pos=0.5". I think I've seen such constructions, but I can't find any more how to implement it.
By the way, I can't use the usual default arguments for TikZ styles, because my "midcircle" already takes other arguments that also have defaults.

pos=0.7still works, because it is a/tikzkey and not a/pgf/decorationkey. Otherwise you could use\tikzset{midcirclepos/.forward to=/tikz/pos}, but without an MWE who knows for certain. – Max Sep 05 '18 at 14:20