editfriends and edit friends

>This function allows adding, editing, and deleting friends from the Friends list.

With adding and deleting friends all good. But I don't understand how to edit friend? How to change via api his bgcolor and fgcolor and change group.
Any ideas?