Create a site
Create a site, such as a supplier farm or customer facility. The
created_by_site field is required and must reference a site within
the consumer’s authorised organisations.
Provide at least one of coordinates or address. Coordinates-only
requests use the coordinates as provided. Address requests are geocoded
before saving, and the response returns the resolved coordinates and
address so you can verify the persisted location. If both are provided,
they must resolve to the same place.
Documentation Index
Fetch the complete documentation index at: https://docs.cula.tech/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
OAuth2 client credentials flow. Exchange your client_id and
client_secret for a short-lived access token, then pass it as
a Bearer token in the Authorization header.
Headers
Organisation ID that scopes this request. The authenticated consumer must be authorized for this organisation. Omitting this header returns 400; passing an unauthorised org returns 403.
Body
- Option 1
- Option 2
Create a site, such as a supplier farm or customer facility. Provide
at least one of coordinates or address. When address is provided,
the server geocodes it and persists the resolved coordinates and
canonical address. When both are provided, they must agree.
"Ackerman Farms (James)"
Latitude/longitude of the site. Provide at least one of
coordinates or address.
The site creating this record. Must be a site within your API key's scope.
- Option 1
- Option 2
{ "id": "ste_01kqzcjrpyf27tge6smsbnhkh5" }
The organisation this site is grouped under.
- Option 1
- Option 2
{ "id": "ste_01kqzcjrpyf27tge6smsbnhkh5" }
Partner-assigned identifier. Must be unique within the organisation.
Postal address of the site. Provide at least one of coordinates
or address. The address is geocoded before saving.
Response
Site created.
"ste_01kqzcjrpyf27tge6smsbnhkh5"
"GreenCarbon Refinery"
Latitude/longitude coordinates of the site.
IANA timezone identifier. Sites with created_by_site inherit the
creating site's timezone when not explicitly set.
"America/Chicago"
Postal address of the site, if known.
The site that created this site record. Null for sites not created via the API.
The organisation that owns or operates this site.