Update A Site

Request

PATCH https://backend.net0.com/v1/sites/{siteId}

This endpoint allows for the partial update of an existing site (physical location) available on your Net0 account.

curl --location --request PATCH 'https://backend.net0.com/v1/sites/ca324611-a5e1-4bc4-8c48-e9bf4b57e842' \
--header 'x-api-key: <API_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Mercedez Site",
    "address": {
        "coordinates": {
            "lat": 52.52000659999999,
            "lng": 13.404954
        },
        "address": "Berlin, Germany"
    },
    "possessionType": "Owned",
    "area": 2151,
    "unit": "FT2",
    "countryId": 81
}'

Field Parameters

AttributeTypeDescriptionInRequired
siteIdStringThis is the id of the site.pathtrue
nameStringThis is the name of the site.bodytrue
addressObjectThis is an object that contains the coordinates data and the address of the site.bodytrue
possessionTypeStringThe possession type of the site.bodytrue
areaNumberThe total area of the sitebodytrue
unitStringThis is the unit value of the emission of the sitebodytrue
countryIdNumberThe id of the countrybody

Response

The response returns the updated site.

{
    "id": "ca324611-a5e1-4bc4-8c48-e9bf4b57e842",
    "name": "Mercedez Site",
    "address": {
        "coordinates": {
            "lat": 52.52000659999999,
            "lng": 13.404954
        },
        "address": "Berlin, Germany"
    },
    "area": 2151,
    "unit": "FT2",
    "avatarUrl": null,
    "totalEmission": 0,
    "possessionType": "Owned",
    "companyId": 2,
    "countryId": 81,
    "gridRegionId": null,
    "createdAt": "2021-11-23T14:17:12.968Z",
    "updatedAt": "2021-11-26T12:28:53.351Z"
}