API for build host? (version 1.14.3)

Problem: trying to get an API to set host into build. we run foreman for our hosts registration and provisioning. now we are trying to find out the API for build and rebuild hosts.
from web GUI, i can click on build and cancel build.
but we are trying to do that thru API. i found the “setbuild” in foreman 1.1 API (ref: API - Foreman). but in v2 API doc i cant seem to find it. (ref: Foreman :: API v2)

would you be able to help find me the right api and payload for build and cancel build?

Expected outcome: API docs and maybe samples.

Foreman and Proxy versions: 1.14.3

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

Hi,
I think you can pass "build": true among params when updating a host. Unless there is something I am missing, this should have the same effect as rebuilding from UI, passing false should cancel the build.

O.