---
title: "Update current organization"
method: PATCH
path: "/api/v1/org"
tags: ["Organizations"]
---

# Update current organization

`PATCH /api/v1/org`

Update the current user's organization

## Request body

- UpdateOrganization — Make all properties in T optional
  - `name` string — The name of the organization
  - `colorPaletteUuid` string — The active color palette uuid for all projects in the organization
  - `createdAt` string, date-time
  - `chartColors` string[] — The default color palette for all projects in the organization
  - `chartDarkColors` string[] — The default dark color palette for all projects in the organization
  - `defaultProjectUuid` string — The project a user sees when they first log in to the organization
  - `pgWire` object — Postgres wire protocol connection details for the semantic layer, only populated on the authenticated `GET /org` response (not the public health endpoint). `enabled` reflects whether the instance exposes a pgwire port and is returned to every org member; `host`/`port` are the infra endpoint clients connect to and are only populated for org admins (null otherwise).
    - `port` number, double, nullable, required
    - `host` string, nullable, required
    - `tlsRequired` boolean
    - `enabled` boolean, required

## Response `200`

Ok

- ApiSuccessEmpty
  - `results` unknown
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.net/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.net/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/versions/40c933755c9a/schema)
