---
title: "Update a distribution"
method: PATCH
path: "/accounts/{account_id}/distributions/{id}"
tags: ["Distributions"]
---

# Update a distribution

`PATCH /accounts/{account_id}/distributions/{id}`

Update an existing distribution.

## Path parameters

- `account_id` string, required
- `id` string, required

## Headers

- `X-PhraseApp-OTP` string

## Request body

- object
  - `name` string — Name of the distribution
  - `project_id` string — Project id the distribution should be assigned to.
  - `platforms` string[] — List of platforms the distribution should support.
  - `locale_ids` string[] — List of locale ids that will be part of distribution releases
  - `format_options` object — Additional formatting and render options. Only `enclose_in_cdata` is available for platform `android`.
  - `fallback_locales_enabled` boolean — Use fallback locale if there is no translation in the current locale.
  - `fallback_to_non_regional_locale` boolean — Indicates whether to fallback to non regional locale when locale can not be found
  - `fallback_to_default_locale` boolean — Indicates whether to fallback to projects default locale when locale can not be found
  - `use_last_reviewed_version` boolean — Use last reviewed instead of latest translation in a project

## Response `200`

OK

- DistributionDetails
  - `id` string
  - `name` string
  - `project` ProjectShort
    - `id` string
    - `name` string
    - `main_format` string
    - `created_at` string, date-time
    - `updated_at` string, date-time
  - `platforms` string[]
  - `release_count` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `deleted_at` string, date-time, nullable
  - `locales` LocalePreview[]
    - `id` string
    - `name` string
    - `code` string
  - `releases` ReleasePreview[]
    - `id` string
    - `version` integer
    - `app_min_version` string
    - `app_max_version` string
    - `description` string
    - `platforms` string[]
    - `environments` string[]
    - `locale_codes` string[]
    - `tags` string[]
    - `project` ProjectShort
      - `id` string
      - `name` string
      - `main_format` string
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400` — Bad request. The request could not be parsed or a parameter failed validation. Verify the request body, the content type, and the parameter types, then retry.
- `401` — Unauthorized. Authentication failed because the access token is missing, expired, or invalid. Supply a valid access token and retry.
- `403` — Forbidden. The credentials are valid but not permitted for this request: the access token may lack the required scope, the user may lack permission on the resource, or the account plan may not include the feature. Use a token with the required scope on an account and user that hold the necessary permissions.
- `404` — Not found. The requested resource does not exist or is not visible to the authenticated user. Verify the identifiers in the request path and that the token has access to them, then retry.
- `422` — Unprocessable entity. The request was well-formed but failed validation. The response body lists each offending field in the `errors` array, with its resource, field, and a human-readable message. Correct the listed fields and retry.
- `429` — Too many requests. The rate limit has been exceeded. Wait until the time indicated by the `X-Rate-Limit-Reset` response header before retrying.

---

[API](https://skmtc.net/phrase/apis/control-hub-service.md) · [All operations](https://skmtc.net/phrase/apis/control-hub-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/phrase/control-hub-service/revisions/98ecac7ba2bf/schema)
