Saving animation to file C++

I changed the position of the character’s bones and got a unique pose at the moment.

Mesh->GetAnimInstance()->SavePoseSnapshot("Pose");

How (is it possible) to save this pose to a file as an animation in fbx format?

How to save an animation to a file?