Failing to change avatar using Discourse API

Is it possible to set trust level of a user via API?