Equip an Asset to an Avtar of a user using API

I am not able to Equip an asset and update an avatar of a user through the apis can some one help me out here.
I have the app, user, avatar and asset id.