sites

Update Site

Update an existing site. All fields are optional — only provided fields are changed.

Moving a site to a different account: Use POST /sites/{site_id}/move instead. accountId cannot be changed on a site update.

Note on geoLocation and fullAddress: Sending either field on update triggers geocoding — the backend may overwrite the stored coordinates with what Google Maps snaps to for the nearest address, so the values you send may not be stored as-is. There is currently no way to update coordinates without allowing the geocoder to potentially adjust them.

patch/sites/{site_id}

Request

  • Base URL: https://api.coperniq.io/v1
  • URL: https://api.coperniq.io/v1/sites/{site_id}
  • Auth: API key in header x-api-key

Path parameters

site_idstring required

Request body

fullAddressstring

Full address string. Backend will re-geocode when updated.

geoLocationstring

Latitude/longitude as "lat,lng". On update, sending this triggers a full re-geocode — the backend snaps to the nearest address via Google Maps, so the stored value may differ from what you sent.

titlestring
streetstring
citystring
statestring
zipcodestring
timezonestring

IANA timezone string (e.g. "America/Los_Angeles"). Use this to manually override the timezone if the geocoded value is incorrect or you are migrating from a system that has an explicit timezone already set.

Response

Site updated successfully

idinteger

Unique site ID.

accountIdinteger

ID of the account this site belongs to.

titlestring nullable

Human-readable label for the site (e.g. "Main Office").

fullAddressstring nullable

Full formatted address string.

streetstring nullable
citystring nullable
statestring nullable
zipcodestring nullable
geoLocationstring nullable

Latitude/longitude as "lat,lng" (e.g. "37.7749,-122.4194").

timezonestring nullable

IANA timezone string (e.g. "America/Los_Angeles").

createdAtstring date-time nullable
updatedAtstring date-time nullable

Changes

No recorded changes to this operation across all 1 revision of this API.