---
search:
  tags:
    - Organisations
    - PATCH
seo:
  description: >-
    Changes an organisation's name, its slug or both. A new slug changes the
    organisation's… Reference for the PATCH /_luna/orgs/{org} endpoint in the
    Luna API.
sidebar:
  label: Update an organisation
  badge: PATCH
title: Update an organisation
type: openapi-operation
---
Changes an organisation's name, its slug or both. A new slug changes the organisation's address in every path. Answers 409 when you are already in another organisation of the new name. An API key cannot do this.

`PATCH /_luna/orgs/{org}`

**Request body** (`application/json`, required)

- `slug` (string | null) — A new slug: lower-case letters, digits and single dashes. Paths use it from then on.
- `name` (string | null) — A new name.

Request body example:

```json
{
  "slug": null,
  "name": null
}
```

**Responses**

- `200` — The organisation as it is now.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "id": "string",
  "slug": "string",
  "name": "string",
  "createdMs": 0
}
```
