Probably you want $g > 1$.
TheEdit: as pointed out by Felipe below, what used to be here was sort of wrong-headed, but I can't delete this answer is yes since there are only finitely manyit has already been accepted. Anyway you should do what he says: the divisor of all Weierstrass points. Explicitly, if $X$ counted with weights is defined over $k$ then $\mathrm{Gal}(\overline k/k)$ acts onby the setvanishing of Weierstrass pointsthe Wronskian determinant of $X$, giving a homomorphismbasis of the space of $\mathrm{Gal}(\overline k/k) \to \mathrm{S}_n$ for some$1$-forms on $n$$X$. The kernelThis divisor is a finite index subgroup corresponding to an algebraic extensionthen manifestly defined over $K/k$ such that each$k$ and so all the Weierstrass point ispoints are defined over $K$a finite extension.