---
title: "Update organization"
method: PUT
path: "/api/organizations/{id}"
tags: ["Organizations"]
---

# Update organization

`PUT /api/organizations/{id}`

## Request

- Base URL: `https://demo.supercheck.dev`
- URL: `https://demo.supercheck.dev/api/organizations/{id}`
- Auth: API key in cookie `better-auth.session_token`

Update the organization name (2–50 characters after trim). Optional slug, logo, and metadata. Requires org_admin or org_owner. Browser updates require a same-origin request; CLI tokens retain their existing authorization. Requires an interactive browser session. Project-scoped CLI tokens receive 403.

## Request body

- OrganizationUpdateRequest
  - `name` string, required: Display name. Leading and trailing whitespace is trimmed.
  - `slug` string, nullable
  - `logo` string, nullable
  - `metadata` object, nullable

## Response `200`

Organization updated

- object
  - `success` boolean
  - `organization` object

## Other responses

- `400`: Invalid organization name
- `401`: Authentication required or token invalid
- `403`: Insufficient permissions
- `404`: Resource not found
- `500`: Internal server error

## Changes

- **2026-10-19** `bfc5fb32bad1`: 1 info
  - the endpoint scheme security `sessionCookie` was added to the API
- **2026-10-01** `0114b54c259d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/organizations/:id/put.md)

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) - [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) - [OpenAPI document](https://skmtc.dev/supercheck-io/apis/supercheck-api/revisions/7fa0162c07bd?raw)
