How can I reset to default blueprint my variables?

I just do it getting the actor like this

AActor* blueprintActor = cppActor->GetClass()->GetDefaultObject<AActor>();

and set the values directly to blueprintActor, the problem is it is not set as dirty so the data is not saved when I close and open the editor, do you know something that I can do to set this to dirty?