We have:
SetUnitUIText
SetUnitUIOptions
SetUnitUIState
A cool addition would be SetUnitUIType(<-uid <-slot <-type), because without a (in the CPack Manager / UI Tab) pre-defined type the other commands do not work.
Sorry when there is a solution but I did not find :-)