---
title: "Update a Resource Account."
method: PATCH
path: "/orgs/{orgId}/resources/accounts/{accId}"
tags: ["public", "ResourceAccount"]
---

# Update a Resource Account.

`PATCH /orgs/{orgId}/resources/accounts/{accId}`

## Path parameters

- `orgId` string, required
- `accId` string, required

## Query parameters

- `dry_run` boolean
- `check_credential` boolean

## Request body

- UpdateResourceAccountRequestRequest — UpdateResourceAccountRequest describes the request to update the security account details.
  - `credentials` object — Credentials associated with the account.
  - `name` string — Display name.

## Response `200`

The updated Resource Account details.

- ResourceAccountResponse — ResourceAccount represents the account being used to access a resource. Resource Accounts hold credentials that are required to provision and manage resources.
  - `created_at` string, date-time, required — The timestamp of when the account was created.
  - `created_by` string, required — The ID of the user who created the account.
  - `id` string, required — Unique identifier for the account (in scope of the organization it belongs to).
  - `is_used` boolean, required — Indicates if this account is being used (referenced) by any resource definition or active resource.
  - `name` string, required — Display name.
  - `type` string, required — The type of the account

## Other responses

- `204` — The Resource Account details are valid but were not persisted because dry-run is enabled.
- `400` — One or more request parameters is missing or invalid.
- `404` — A Resource Account with the 'accId' ID is not found or does not belong to the organization.
- `500` — Internal application error.

---

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