---
title: "Update a Decodable Account."
method: PATCH
path: "/accounts/{name}"
tags: ["Account Operations"]
---

# Update a Decodable Account.

`PATCH /accounts/{name}`

## Request

- Base URL: `https://replace-with-account.api.decodable.co/v1alpha2`
- URL: `https://replace-with-account.api.decodable.co/v1alpha2/accounts/{name}`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://auth.decodable.co/authorize?audience=https://api.decodable.co/`
    - Token URL: `https://auth.decodable.co/oauth/token`
- TypeScript: <https://skmtc.dev/decodable/apis/decodable-control-plane/docs/accounts/:name/patch.ts> (a function with typed inputs; its response is checked against the schema)

Requires permission matching: `account:write:<name>`, where `name` is the account name.

## Request body

- AccountSubscription: Account Subscription Info
  - `subscription` object, required: Subscription information
    - `plan_id` string: plan id
  - `deployment_type` string, required: Deployment type

## Response `201`

A Decodable Account creation response.

- AccountResponse: Subscription properties, including derived fields
  - `name` string, required: The Decodable Account name, globally unique, hostname segment compliant.
  - `display_name` string, required: Unconstrained, for display.
  - `auth0_org_id` string, required: The organization id from Auth0 for this account
  - `subscription` Subscription, required: Subscription information
    - `plan_id` string: plan id
    - `capabilities` string[]: Describes which additional capabilities are enabled for this account. Possible values are "custom_pipelines". New values may be added in future API versions; consumers should be able to gracefully handle unknown values.

## Other responses

- `400`: An invalid request was received.
- `403`: Access denied: requesting user lacks a required permission.
- `409`: A conflicting resource already exists.
- `default`: An error has occurred.

---

[API](https://skmtc.dev/decodable/apis/decodable-control-plane.md) - [All operations](https://skmtc.dev/decodable/apis/decodable-control-plane/llms.txt) - [OpenAPI document](https://skmtc.dev/decodable/apis/decodable-control-plane/revisions/9718a3019da8?raw)
