Skip to main content
PATCH
Update Company

Authorizations

X-API-KEY
string
header
required

Path Parameters

company_id
string<uuid>
required

ID of the company to update.

Body

Serializer for updating an existing Company object.

externalId
string | null

External identifier for the company. Used to associate company in Nectar with company within your database.

name
string

Name of the company.

Required string length: 1 - 200
dataCollectionStartDate
string<date>

Date when data collection for the company begins. This is the date from which Nectar will pull historical data. Similar fields at the site and workflow level can override this date. Defaults to January 1st of the previous year.

isImpliedMeteringEnabled
boolean

Whether implied sewer metering is enabled: when a bill has no sewer meter, sewer usage is estimated from water usage using impliedMeteringFraction.

impliedMeteringFraction
string<decimal>

Fraction used to estimate sewer usage from water usage for implied metering. If a sewage charge is found in the data without water usage, this fraction is used to estimate the waste water usage that corresponds to the sewage charge. Defaults to 1.0.

Pattern: ^-?\d{0,1}(?:\.\d{0,2})?$
isDemandEnabled
boolean
deprecated

Deprecated. Demand meters are tracked for every company. Ignored on input; always true.

isBasicIdentifierMappingEnabled
boolean
deprecated

Deprecated. Every company uses the full set of identifier types. Ignored on input; always false.

isLowAccuracyModeEnabled
boolean
deprecated

Deprecated. Every bill gets the standard accuracy review. Ignored on input; always false.

users
string<email>[]

List of email addresses of users to set as company admins. If provided, replaces the current list of users. If not provided, user list remains unchanged.

Minimum string length: 1

Response

Serializer for externally available fields of a Company object including related sites.

id
string<uuid>
required

Unique identifier for the company.

name
string
required

Name of the company.

Maximum string length: 200
isImpliedMeteringEnabled
boolean
required

Whether implied sewer metering is enabled: when a bill has no sewer meter, sewer usage is estimated from water usage using impliedMeteringFraction.

isDemandEnabled
boolean
required
deprecated

Deprecated. Demand meters are tracked for every company. Ignored on input; always true.

isBasicIdentifierMappingEnabled
boolean
required
deprecated

Deprecated. Every company uses the full set of identifier types. Ignored on input; always false.

isLowAccuracyModeEnabled
boolean
required
deprecated

Deprecated. Every bill gets the standard accuracy review. Ignored on input; always false.

sites
object[]
required
users
string[]
required

List of user email addresses associated with the company.

externalId
string | null

External identifier for the company. Used to associate company in Nectar with company within your database.

dataCollectionStartDate
string<date>

Date when data collection for the company begins. This is the date from which Nectar will pull historical data. Similar fields at the site and workflow level can override this date. Defaults to January 1st of the previous year.

impliedMeteringFraction
string<decimal>

Fraction used to estimate sewer usage from water usage for implied metering. If a sewage charge is found in the data without water usage, this fraction is used to estimate the waste water usage that corresponds to the sewage charge. Defaults to 1.0.

Pattern: ^-?\d{0,1}(?:\.\d{0,2})?$