Skip to main content
POST
Add one site, with the same numbering, rules, reference checks and approval gate as the Sites screen.

Headers

Prefer
enum<string>

Preference

Available options:
params=single-object

Body

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_record with core.sites as the entity.

p_values
object
required

The fields of the new record. Send only the ones you have; the rest take their defaults.

p_custom_fields
string<jsonb>

Response

200

OK