---
title: "Update locale strings for a MessageFragment"
method: PUT
path: "/shop/message-fragments/{messageFragmentId}/locale-strings/{locale}"
tags: ["MessageFragments"]
---

# Update locale strings for a MessageFragment

`PUT /shop/message-fragments/{messageFragmentId}/locale-strings/{locale}`

Sets the localised `name` and/or `message` for the given locale.

## Request body

- object
  - `name` string, nullable — The localised name for this message fragment in the given locale.
  - `message` string, nullable — The localised message body for this message fragment in the given locale.

## Response `200`

The locale strings for the message fragment were successfully updated.

- object
  - `data` MessageFragmentLocaleStrings, required
    - `name` string, nullable, required — The localised name for this message fragment in the given locale.
    - `message` string, nullable, required — The localised message body for this message fragment in the given locale.

## Other responses

- `401` — The user is unauthenticated
- `403` — The authenticated user does not have permission.
- `404` — The resource couldn't be found
- `422` — The request didn't pass validation

---

[API](https://skmtc.dev/try/apis/trybe-api.md) · [All operations](https://skmtc.dev/try/apis/trybe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/try/trybe-api/revisions/f37f92702da5/schema)
