---
title: "Update a Facility"
method: PUT
path: "/app/v1/facilities/{facility_id}"
tags: ["facilities"]
---

# Update a Facility

`PUT /app/v1/facilities/{facility_id}`

## Path parameters

- `facility_id` string, uuid, required

## Query parameters

- `period` string

## Request body

- FacilityUpdateInput
  - `custom_attributes` CustomAttributes
  - `latitude` number, nullable — latitude on the Earth
  - `longitude` number, nullable — longitude on the Earth
  - `name` string
  - `status` string — Use `id` value of any index in `GET /v1/facility_statuses`
  - `type` string — Use `id` value of any index in `GET /v1/facility_types`
  - `start_date` union — Start date of attributes. If start_date is provided and end_date is not provided, it defaults to the range [start_date, max]. If both start_date and end_date are not provided, it defaults to the range [current year month, next existing year month - 1]
    - string — Year month formatted as YYYYMM
    - 'min' | 'max' — Year month shorthand
  - `end_date` union — End date of attributes. If end_date is provided and start_date is not provided, it defaults to the range [min, start_date]. If both start_date and end_date are not provided, it defaults to the range [current year month, next existing year month - 1]
    - string — Year month formatted as YYYYMM
    - 'min' | 'max' — Year month shorthand

## Response `200`

successful operation

- Facility
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `created_by` string, uuid
  - `updated_by` string, uuid
  - `custom_attributes` CustomAttributes
  - `latitude` number, nullable — latitude on the Earth
  - `longitude` number, nullable — longitude on the Earth
  - `name` string
  - `status` string — Use `id` value of any index in `GET /v1/facility_statuses`
  - `type` string — Use `id` value of any index in `GET /v1/facility_types`
  - `id` string, uuid

---

[API](https://skmtc.net/validere/apis/carbonhub-api.md) · [All operations](https://skmtc.net/validere/apis/carbonhub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/validere/carbonhub-api/revisions/053edab62415/schema)
