Sites and locations
Add one site, with the same numbering, rules, reference checks and approval gate as the Sites screen.
Add one site, with the same numbering, rules, reference checks and approval gate as the Sites screen.
p_values holds the site’s fields — name is the only one that must be sent, and the site code is assigned by the tenant’s numbering. p_custom_fields holds answers to the tenant’s own fields, keyed by field key. Returns the new site, or status: PENDING_APPROVAL where the tenant’s approval rules hold it.
To change a site afterwards, call update_site.

