---
title: "Update Fastly account"
method: PATCH
path: "/api/v2/integrations/fastly/accounts/{account_id}"
tags: ["Fastly Integration"]
---

# Update Fastly account

`PATCH /api/v2/integrations/fastly/accounts/{account_id}`

Update a Fastly account.

## Path parameters

- `account_id` string, required

## Request body

- FastlyAccountUpdateRequest — Payload schema when updating a Fastly account.
  - `data` FastlyAccountUpdateRequestData, required — Data object for updating a Fastly account.
    - `attributes` FastlyAccountUpdateRequestAttributes — Attributes object for updating a Fastly account.
      - `api_key` string — The API key of the Fastly account.
      - `name` string — The name of the Fastly account.
    - `type` 'fastly-accounts' — The JSON:API type for this API. Should always be `fastly-accounts`.

## Response `200`

OK

- FastlyAccountResponse — The expected response schema when getting a Fastly account.
  - `data` FastlyAccountResponseData — Data object of a Fastly account.
    - `attributes` FastlyAccounResponseAttributes, required — Attributes object of a Fastly account.
      - `name` string, required — The name of the Fastly account.
      - `services` FastlyService[] — A list of services belonging to the parent account.
        - `id` string, required — The ID of the Fastly service
        - `tags` string[] — A list of tags for the Fastly service.
    - `id` string, required — The ID of the Fastly account, a hash of the account name.
    - `type` 'fastly-accounts', required — The JSON:API type for this API. Should always be `fastly-accounts`.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `429` — Too many requests

---

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