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
Attribute | Type | Description | In | Required |
---|---|---|---|---|
siteId | String | This is the id of the site. | path | true |
name | String | This is the name of the site. | body | true |
address | Object | This is an object that contains the coordinates data and the address of the site. | body | true |
possessionType | String | The possession type of the site. | body | true |
area | Number | The total area of the site | body | true |
unit | String | This is the unit value of the emission of the site | body | true |
countryId | Number | The id of the country | body |
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"
}