---
title: "Update a web integration account"
method: PATCH
path: "/api/v2/web-integrations/{integration_name}/accounts/{account_id}"
tags: ["Web Integrations"]
---

# Update a web integration account

`PATCH /api/v2/web-integrations/{integration_name}/accounts/{account_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/web-integrations/{integration_name}/accounts/{account_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update an existing account for a given web integration.

## Path parameters

- `integration_name` string, required
- `account_id` string, required

## Request body

- WebIntegrationAccountUpdateRequest: Payload schema when updating a web integration account.
  - `data` WebIntegrationAccountUpdateRequestData, required: Data object for updating a web integration account.
    - `attributes` WebIntegrationAccountUpdateRequestAttributes, required: Attributes object for updating a web integration account.
      - `name` string: A human-readable name for the account.
      - `secrets` WebIntegrationAccountSecrets: Integration-specific secrets. The shape of this object varies by integration. Secrets are write-only and never returned by the API.
      - `settings` WebIntegrationAccountSettings: Integration-specific settings. The shape of this object varies by integration.
    - `type` 'Account', required: Account resource type.

## Response `200`

OK

- WebIntegrationAccountResponse: The expected response schema when getting a single web integration account.
  - `data` WebIntegrationAccountResponseData: Data object of a web integration account.
    - `attributes` WebIntegrationAccountResponseAttributes, required: Attributes object of a web integration account. Secrets are never returned.
      - `name` string, required: A human-readable name for the account.
      - `settings` WebIntegrationAccountSettings: Integration-specific settings. The shape of this object varies by integration.
    - `id` string, required: The unique identifier of the web integration account.
    - `type` 'Account', required: Account resource type.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `422`: The server cannot process the request because it contains invalid data.
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
