How to pass the Bitrise build message as Testflight test build details text

Is there any way to pass the message I input when manually (and/or automatically via API) triggering a build to Testflight and set that message text as the Testflight build details text?