Skip to main content
PATCH
Patch 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

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

"ste_1G5775S5R1S0MGA9"

"ste_1E21KYYG3SBX13Q7"

Body

application/json
additional_metadata
Additional Metadata · object

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

address
default:{"__typename":"Undefined"}

A postal address.

Example:

"123 Example Street, London"

deprecation
Deprecation · object

Excludes the site from future use, such as crediting, while keeping it in history. Deprecation is permanent: you can't undo it, and you can't deprecate a site twice.

description
default:{"__typename":"Undefined"}

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

Maximum string length: 1000
metadata
Metadata · object

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

name
default:{"__typename":"Undefined"}

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

Required string length: 1 - 100
supplier_reference_id
default:{"__typename":"Undefined"}

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

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