# Update a cloud account

Source: https://www.jawsdeploy.net/rest-api/cloud-accounts-update | Section: Cloud Accounts

Update a cloud account's settings or credentials.

`PUT /api/cloud-account`

Updates a cloud account. Pass only the fields you want to change. To rotate credentials, send a new `azure` object.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `accountId` | body | string | yes | ID of the cloud account. |
| `name` | body | string | no | New name. |
| `description` | body | string | no | New description. |
| `cloudType` | body | string | no | New cloud type. |
| `applyEnvironmentFilter` | body | boolean | no | Toggle environment filtering. |
| `environmentFilter` | body | array<string> | no | New environments filter. |
| `azure` | body | object | no | Replacement Azure credentials. |

## Errors

| Status | Meaning |
|---|---|
| 400 | Invalid `accountId` or validation failure. |
| 401 | Missing or invalid Basic auth credentials, or the service account lacks the required role. |

Example request:

```
PUT /api/cloud-account

{ "accountId": "ca_1", "azure": { "applicationPassword": "***" } }
```

Example response:

```
{}
```

