---
title: "PATCH Solar Farm by ID"
method: PATCH
path: "/solar_farms/{solar_farm_id}"
tags: ["Solar Farms"]
---

# PATCH Solar Farm by ID

`PATCH /solar_farms/{solar_farm_id}`

Update solar farm details. None of the fields are required but at least one field must be present in the request body for the request to work. NOTE - if through user error your account contains multiple instances of the same farm please flag duplicate farms to Raptor Maps support for deletion before assigning an asset id by contacting support@raptormaps.com

## Path parameters

- `solar_farm_id` integer, required

## Query parameters

- `org_id` integer, required

## Request body

- FarmUpdateObject
  - `access_code` string, nullable
  - `address` string, nullable
  - `asset_id` string, nullable
  - `commissioning_tsecs` integer, nullable
  - `country` string, nullable
  - `name` string, nullable
  - `state` string, nullable

## Response `200`

Successful Response

- Farm
  - `id` integer, required
  - `uuid` string, uuid, required
  - `name` string, nullable
  - `geom` string, nullable
  - `org_id` integer, nullable
  - `created_tsecs` integer, nullable
  - `updated_tsecs` integer, nullable
  - `solar_module_id` integer, nullable
  - `address` string, nullable
  - `module_layout` string, nullable
  - `module_mount` string, nullable
  - `commissioning_tsecs` integer, nullable
  - `size` number, nullable
  - `access_code` string, nullable
  - `ppa_rate` number, nullable
  - `peak_sunlight_hours_annual` integer, nullable
  - `country` string, nullable
  - `state` string, nullable
  - `asset_id` string, nullable
  - `latitude` number, nullable
  - `longitude` number, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/raptormaps/apis/raptor-maps-authentication.md) · [All operations](https://skmtc.net/raptormaps/apis/raptor-maps-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/raptormaps/raptor-maps-authentication/revisions/4887159079a9/schema)
