# Rename organization account

Source: <https://everruns.com/docs/api/operations/update_organization_account_name/>

[Docs](https://everruns.com/docs/)/[API reference](https://everruns.com/docs/api/)/[Identity & access](https://everruns.com/docs/api/groups/identity-access/)/Rename organization account

# Rename organization account

Preview

Rename an organization account while preserving its current credentials.

Public APIEverruns Cloud and self-hosted Platform

PATCH`/v1/organization-accounts/{id}`

See [authentication](https://everruns.com/docs/sre/runbooks/authentication/) for credentials and permissions.

## Parameters

### Path Parameters

**id**

required

string

Prefixed public identifier

## Request Bodyrequired

Media typeapplication/json

A new display name; account credentials remain unchanged.

object

**name**

required

string

### Example generated

```json
{
  "name": "example"
}
```

## Responses

200Success

### 200

Success

Media typeapplication/json

Editable history contains only the account’s display name.

object

**id**

required

string format: uuid

**name**

required

string

### Example generated

```json
{
  "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
  "name": "example"
}
```

FetchcURL

Request

```js
const url = 'https://app.everruns.com/api/v1/organization-accounts/example';
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: '{"name":"example"}'
};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

Request

```sh
curl --request PATCH \
  --url https://app.everruns.com/api/v1/organization-accounts/example \
  --header 'Content-Type: application/json' \
  --data '{ "name": "example" }'
```

Additional language examples require JavaScript. The default request example is available above.

200

200 · Success

```json
{
  "id": "string",
  "name": "string"
}
```

## Matching endpoints