Skip to main content
PUT
Update Facility

Update Facility

Update an existing facility in your organization. Only include the fields you want to change — all other fields remain unchanged.
Archiving Side Effects: Setting status to archived will also archive any linked logistic hub and deactivate associated supply contracts.

Request

Path Parameters

uuid
required
The UUID of the facility to updateExample: 550e8400-e29b-41d4-a716-446655440000

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Body Parameters

All fields are optional — only include what you want to change.
string
Facility name
string
Physical address
string
ISO country code
string
Facility type
array[string]
Consumption categories
array[string]
CUPS codes
string
Status: active or archived
number
Logistic factor (0 to 1)

Response

Returns the updated facility object.
string
Facility UUID
string
Facility name
string | null
Physical address
string
ISO country code
string
Facility type
array[string] | null
Enabled consumption categories
array[string] | null
List of CUPS codes
string
Facility status: active or archived
number | null
Total CO2e emissions (tCO2e)
number | null
CO2e emissions from biomass sources
number | null
Logistic factor for scope 2 (0 to 1)
string | null
Purpose type of the facility
datetime
Creation timestamp (ISO 8601)
string | null
Last update timestamp (ISO 8601)
integer
Number of invoices in review status
integer
Number of configured categories with no invoices
string | null
Water type of the waste water treatment line (only for waste_water_facilities)
boolean | null
Whether methane is burned (only for waste_water_facilities)
object | null
Waste water treatment line config (only for waste_water_facilities)
object | null
Sludge treatment line config (only for waste_water_facilities)
object | null
Water discharge line config (only for waste_water_facilities)

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: The facility does not exist or belongs to another organization

422 Unprocessable Entity

Cause: Invalid field values (e.g. invalid country code or status)

Get Facility

Retrieve facility details

Delete Facility

Remove a facility