---
title: "Update an organization"
method: PATCH
path: "/organizations/{organization}"
tags: ["Organizations"]
---

# Update an organization

`PATCH /organizations/{organization}`

### Authorization
A   OAuth token must have at least one of the following   scopes in order to use this API endpoint:

**OAuth Scopes**

 | Resource | Scopes |
| :------- | :---------- |
| Organization | `write_organization` |

## Path parameters

- `organization` string, required

## Request body

- object
  - `billing_email` string — The billing email for the organization
  - `idp_managed_roles` boolean — Whether or not the IdP provider is be responsible for managing roles in PlanetScale
  - `invoice_budget_amount` integer — The expected monthly budget for the organization

## Response `200`

Returns the updated organization

- object
  - `id` string, required — The ID for the organization
  - `name` string, required — The name of the organization
  - `billing_email` string, required — The billing email of the organization
  - `created_at` string, required — When the organization was created
  - `updated_at` string, required — When the organization was last updated
  - `plan` string, required — The billing plan of the organization
  - `valid_billing_info` boolean, required — Whether or not the organization's billing information is valid
  - `sso` boolean, required — Whether or not SSO is enabled on the organization
  - `sso_directory` boolean, required — Whether or not the organization uses an SSO directory
  - `single_tenancy` boolean, required — Whether or not the organization has single tenancy enabled
  - `managed_tenancy` boolean, required — Whether or not the organization has managed tenancy enabled
  - `has_past_due_invoices` boolean, nullable — Whether or not the organization has past due billing invoices.
  - `database_count` integer, required — The number of databases in the organization
  - `sso_portal_url` string, nullable — The URL of the organization's SSO portal.
  - `features` object, required — Features that can be enabled on the organization
  - `idp_managed_roles` boolean, required — Whether or not the IdP provider is be responsible for managing roles in PlanetScale
  - `invoice_budget_amount` string, required — The expected monthly budget for the organization
  - `keyspace_shard_limit` integer, required — The keyspace shard limit for the organization
  - `has_card` boolean, required — Whether or not the organization has a payment method on file
  - `payment_info_required` boolean, required — Whether or not the organization requires payment information

## Other responses

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

## Changes

- **2026-06-01** `72506953f367` — 4 breaking
  - the response property `has_past_due_invoices` became nullable for the status `200`
  - the response property `sso_portal_url` became nullable for the status `200`
  - the response property `has_past_due_invoices` became optional for the status `200`
  - the response property `sso_portal_url` became optional for the status `200`
- **2026-02-24** `f3845f225936` — 1 breaking
  - the `invoice_budget_amount` response's property type/format changed from `number`/`` to `string`/`` for status `200`
- **2025-12-09** `d710019068fb` — 1 breaking
  - the `invoice_budget_amount` request property type/format changed from `number`/`` to `integer`/``

[Change history](https://skmtc.dev/planetscale/apis/planetscale-api/changes/organizations/:organization/patch.md)

---

[API](https://skmtc.dev/planetscale/apis/planetscale-api.md) · [All operations](https://skmtc.dev/planetscale/apis/planetscale-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/planetscale/planetscale-api/revisions/72506953f367/schema)
