---
title: "Update Credential"
method: PUT
path: "/organizations/{organization_id}/accounts/{account_id}/credential"
tags: ["Accounts"]
---

# Update Credential

`PUT /organizations/{organization_id}/accounts/{account_id}/credential`

## Request

- Base URL: `https://api.cloudranger.com/202004`
- URL: `https://api.cloudranger.com/202004/organizations/{organization_id}/accounts/{account_id}/credential`
- Auth: API key in header `Authorization` and API key in header `x-api-key`

Updates the credentials of the given account

## Path parameters

- `organization_id` string, required
- `account_id` string, required

## Request body

- PutOrganizationsAccountsCredentialRequest
  - `access_role_arn` string
  - `account_id` string
  - `cloudformation_s3_url` string
  - `created_at` string, date-time
  - `external_id` string
  - `has_agreed` boolean
  - `state` string
  - `state_reason` string
  - `updated_at` string, date-time

## Response `200`

200 response

- PutOrganizationsAccountsCredentialResponse

## Other responses

- `201`: 201 response
- `401`: 401 response
- `403`: 403 response
- `404`: 404 response

---

[API](https://skmtc.dev/druva/apis/cloudranger.md) - [All operations](https://skmtc.dev/druva/apis/cloudranger/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cloudranger/revisions/0b87602807da?raw)
