---
title: "Update a custom band-math formula (write scope; org-scoped)."
method: POST
path: "/v1/band_formulas/update"
tags: ["resource-facade"]
---

# Update a custom band-math formula (write scope; org-scoped).

`POST /v1/band_formulas/update`

## Headers

- `x-api-key` string, nullable

## Request body

- BandFormulaUpdateInput
  - `formula_id` string, required
  - `name` string, nullable
  - `formula` string, nullable
  - `display_name` string, nullable
  - `description` string, nullable
  - `colormap` string, nullable
  - `value_range` number[], nullable
  - `category` string, nullable

## Response `200`

Successful Response

- BandFormulaOutput
  - `id` string, required
  - `organization_id` string, required
  - `name` string, required
  - `display_name` string, nullable
  - `formula` string, required
  - `description` string, nullable
  - `required_bands` string[]
  - `colormap` string, required
  - `value_range` number[], required
  - `category` string, required
  - `is_template` boolean, required
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.dev/geopera/apis/geopera-data-platform.md) · [All operations](https://skmtc.dev/geopera/apis/geopera-data-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/geopera/geopera-data-platform/revisions/cb0130b2a40a/schema)
