---
title: "Update a Capability Localization by Locale"
method: PUT
path: "/capabilities/{capabilityId}/{capabilityVersion}/i18n/{locale}"
tags: ["Capabilities"]
---

# Update a Capability Localization by Locale

`PUT /capabilities/{capabilityId}/{capabilityVersion}/i18n/{locale}`

## Request

- Base URL: `https://api.smartthings.com/v1`
- URL: `https://api.smartthings.com/v1/capabilities/{capabilityId}/{capabilityVersion}/i18n/{locale}`
- Auth: OAuth 2
  - Implicit: `https://auth-global.api.smartthings.com`
  - Scopes: `w:customcapability`
- TypeScript: <https://skmtc.dev/smartthings/apis/smartthings-api/docs/capabilities/:capabilityId/:capabilityVersion/i18n/:locale/put.ts> (a function with typed inputs; its response is checked against the schema)

Update existing translated values for a given language (i.e. locale) associated with a Capability.
The `locale` is the abbreviated, internationalization code associated with the
language for which values will be updated.<br /><br />
If the `tag` argument is provided in the request body, it will be ignored.

## Request body

- CapabilityLocalization
  - `tag` string, required: The tag of the locale as defined in [RFC bcp47](http://www.rfc-editor.org/rfc/bcp/bcp47.txt).
  - `label` string: A localized label for the capability
  - `description` string: A localized description of the capability
  - `attributes` object: Map of attribute name to localizations
  - `commands` object: Map of command name to localizations

## Response `200`

successful update of a Capability localization

- CapabilityLocalization
  - `tag` string, required: The tag of the locale as defined in [RFC bcp47](http://www.rfc-editor.org/rfc/bcp/bcp47.txt).
  - `label` string: A localized label for the capability
  - `description` string: A localized description of the capability
  - `attributes` object: Map of attribute name to localizations
  - `commands` object: Map of command name to localizations

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `429`: Too many requests
- `default`: Unexpected error

---

[API](https://skmtc.dev/smartthings/apis/smartthings-api.md) - [All operations](https://skmtc.dev/smartthings/apis/smartthings-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smartthings/apis/smartthings-api/revisions/2788a4236800?raw)
