Host descriptions cannot be set via an API call, they can only be set in a worker's configuration file.
The relevant parameter is worker_description, and it can be set either in the worker's local copy of the qb.conf file, or on the supervisor in the central worker config file, qbwrk.conf. It should be a double-quoted string.