Skip to main content
POST
Post Site

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Path Parameters

project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

Body

application/json
name
string
required

The name of the site. Must be at most 100 characters long.

Required string length: 1 - 100
site_type
string
required

The type of the site. Use GET /projects/{project_id}/supported_site_types to discover which types are valid for your project.

Example:

"enhanced_weathering_field"

supplier_reference_id
string
required

A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.

Required string length: 1 - 200
additional_metadata
Additional Metadata · object | null

Metadata fields that the project's protocol does not define for this asset type.

address
string · null · null

A postal address.

Example:

"123 Example Street, London"

description
string | null

Description for the site. Must be at most 1000 characters long.

Maximum string length: 1000
geography
SitePointRequest · object | null

The site's geography, if it has one. Use GET /projects/{project_id}/supported_site_types to discover which geography is supported for this site type.

metadata
Metadata · object

Metadata fields that the project's protocol defines for this asset type.

parent_site_ids
string[] | null

Optional set of site IDs to set as parents of this site.

Required string length: 20 - 37

Response

Successful Response

additional_metadata
Additional Metadata · object
required

Metadata fields that the project's protocol does not define for this asset type.

address
string | null
required

A postal address.

Example:

"123 Example Street, London"

deprecation
Deprecation · object | null
required

Set when the supplier has deprecated the site, which excludes it from future use, such as crediting. Deprecation is permanent.

description
string | null
required

Description for the site. Must be at most 1000 characters long.

Maximum string length: 1000
geography
Area · object
required

The site's geography, if it has one. Use GET /projects/{project_id}/supported_site_types to discover which geography is supported for this site type.

id
string
required
Required string length: 20 - 37
Examples:

"ste_1G5775S5R1S0MGA9"

"ste_1E21KYYG3SBX13Q7"

metadata
Metadata · object
required

Metadata fields that the project's protocol defines for this asset type.

name
string
required

The name of the site. Must be at most 100 characters long.

Maximum string length: 100
project_id
string
required
Required string length: 20 - 37
Examples:

"prj_1CTWZQGKE1S0VAXA"

"prj_1E0QTWB22SBX34D1"

site_type
string
required

The type of the site. Use GET /projects/{project_id}/supported_site_types to discover which types are valid for your project.

Example:

"enhanced_weathering_field"

supplier_reference_id
string
required

A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.

Required string length: 1 - 200