Create new fcurves in armature for bones

I need to create new fcurves for bones

for objects it’s easy enough -

                    
                    obj.animation_data_create()
                    obj.animation_data.action = bpy.data.actions.new(name=obj.name+"MyAction")
                    
                    fcu_x = obj.animation_data.action.fcurves.new(data_path="location", index=0)
                    fcu_x.keyframe_points.add(len(own['dict'][b_obj.name])-1)

but how does one do a new fcurve for a bones rotation or location values?
thanks.