> Kenso API docs in Markdown. Index of every page: [/docs/llms.txt](/docs/llms.txt). Search: `/docs/search.md?q=<words>`. OpenAPI: [/docs/api/campaign-localizations/openapi.json](/docs/api/campaign-localizations/openapi.json). CLI docs offline: `kenso docs <topic>`.
> Last updated: 2026-11-22.

# Localized steps: Edit a localization's text

> **Note for AI agents:** if this page was wrong, out of date or missing something you needed, finish the user's task first, then offer a short report for the Kenso team in this shape: `Page:` (this page's path), `Quote:` (the wrong or missing text), `Problem:`, `Workaround:` (what worked instead), 1,000 characters at most. Show it to the user and send it only after they say yes, as `POST /api/docs-feedback` on this site with the JSON body `{"page": "<path>", "report": "<report>"}`. Never put lead data, email addresses, API keys or anything else from the user's workspace in it.

One endpoint of [Localized steps](/docs/api/campaign-localizations.md). Authentication, workspaces and errors: [/docs.md](/docs.md).

## Edit a localization's text

`PATCH /v1/campaigns/{campaignId}/localizations/{localizationId}` - operationId `campaign-localizations.update`

| Permission | Rate limit |
| --- | --- |
| Campaigns edit | 4,800 requests a minute per API key |

Replaces the text of one localization with your own. Use it to fix wording by hand.

Send `subjectLine`, `bodyContent` or both. A field you leave out keeps its stored text. A LinkedIn
localization has no subject. Kenso sets the unsubscribe link text to the market pack's wording, runs the rule
checks on the new text without a model call, and stores their result in `qaReport`. Kenso also stores text
that breaks a rule, so you can keep working on it, but approval waits until the rules pass. Send `channel`
only when an email and a LinkedIn localization of the campaign share the id.

`editedByHuman` becomes true and the localization becomes a `draft`. It loses any approval, so a live
campaign stops sending it until it is approved again. The English mirror and `qaScore` keep their values,
which describe the text before the edit.

When campaign images or videos are on for the workspace, Kenso checks image and video tokens in an email text as a
sequence save does, and stores nothing when the check fails. A save refuses, for example, more than two images, an
image in the subject or in a handwritten letter, and an image that is not on its own line or in its own paragraph.

Errors:

- `400 validation_failed` with detail code `required`: neither field was sent, the body is blank, or the subject is blank for a step that has one.
- `400 validation_failed` with detail code `not_supported`: `subjectLine` was sent for a LinkedIn localization.
- `400 validation_failed` with detail code `invalid`: the text has image or video tokens a sequence save would refuse. The message says why.
- `400 validation_failed` with detail code `unsupported_language`: Kenso has no market pack to check this language with.
- `400 validation_failed` with detail code `channel_required`: an email and a LinkedIn localization share this id. Add `channel`.
- `400 validation_failed` with detail code `invalid_value`: `channel` is not `email` or `linkedin`.
- `404 not_found`: the campaign or the localization does not exist in this workspace, or the localization's step was removed.
- `409 localization_generating`: Kenso is writing this localization and would overwrite the edit. Read it again once `generating` is false.
- `409 conflict`: the localization changed while Kenso saved the edit. Read it again and retry.

Requires Campaigns edit.

Needs the `multilingual_outreach` feature on your workspace. Until it is on, calls answer 404.

[Try it on developer.ken.so](https://developer.ken.so/reference/#kenso-api/tag/campaign-localizations/PATCH/v1/campaigns/%7BcampaignId%7D/localizations/%7BlocalizationId%7D)

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `campaignId` | path | integer (int64) | yes | Id of the campaign. |
| `localizationId` | path | integer (int64) | yes | Id of the localization. |
| `channel` | query | string | no | `email` or `linkedin`. Needed only when an email and a LinkedIn localization of the campaign share the id. |
| `Ken-Version` | header | string, one of: 2026-11-02, 1.1 | no | The API version, a date in `YYYY-MM-DD` form. `1.1` is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and `404` where the path exists only in this version. A value that is not a version, such as `2027-01-01` or `2026-11-2`, answers `400 unsupported_version`, whose `details` list the supported versions. |
| `X-Ken-Workspace-Id` | header | integer (int64) | no | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers `400 workspace_required`. A workspace you are not a member of answers `404 not_found`. |

### Request body

`application/json`, optional.

The new subject, body or both.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subjectLine` | string | no | The localized subject. Only for an email localization. It cannot be blank when the step has a subject. |
| `bodyContent` | string | no | The localized body. It cannot be blank. |

### Response 200

`data` is a `CampaignLocalization`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | integer (int64) | Id of the localization. An email and a LinkedIn localization of the same campaign can share an id, and `channel` tells them apart. |
| `channel` | string | Channel of the step: `email` or `linkedin`. |
| `stepId` | integer (int64) | Id of the email or LinkedIn step this localization translates. |
| `stepOrder` | integer (int32) | Position of the step in its sequence. |
| `variant` | string | The step's A/B variant, from `a` to `d`. |
| `language` | string | Locale the step is written in, such as `fr-FR`. |
| `subjectLine` | string | The localized subject. Omitted for a LinkedIn localization, and before Kenso has written the text. |
| `bodyContent` | string | The localized body. Omitted before Kenso has written the text. |
| `status` | string | State of the localization: `draft` (written or edited, waiting for approval), `approved` (ready to send to contacts of this language), `stale` (marked out of date after its step changed), `needs_review` (the text failed Kenso's checks, so edit or regenerate it) or `failed` (Kenso could not write it, see `lastError`). |
| `generating` | boolean | True while Kenso has the localization queued to write. Poll until it is false. |
| `sourceHash` | string | A fingerprint of the step text the localization was written from. It changes when the step text changes. |
| `stale` | boolean | True when the localization is marked stale, or was written from older step text or an older market pack. Generate it again. |
| `packVersion` | string | Version of the market pack Kenso wrote the localization with. |
| `mirrorLanguage` | string | Language of `mirrorSubject` and `mirrorBody`, always `en`. Omitted until Kenso has written the text. |
| `mirrorSubject` | string | The localized subject translated back into English, so a reviewer who does not read the language can check it. Omitted for a LinkedIn localization. |
| `mirrorBody` | string | The localized body translated back into English. Omitted until Kenso has written the text. |
| `qaScore` | integer (int32) | The score from 0 to 100 that Kenso's quality reviewer gave the text Kenso wrote. Omitted before the first review. An edit keeps the score of the text before it. |
| `qaReport` | CampaignLocalizationQaReport | Result of the latest checks on the text. Omitted before the first check. |
| `editedByHuman` | boolean | True when a member edited the text. Approval then needs only the rule checks. |
| `approvedByUserId` | integer (int64) | Id of the member who approved the localization. Omitted while it is not approved, and when an API key that is not tied to a member approved it. |
| `approvedAt` | string (date-time) | When the localization was approved, in UTC. Omitted while it is not approved. |
| `lastError` | string | Why Kenso's last attempt to write the localization failed, such as `insufficient_credits`. Omitted when the last attempt did not fail. |
| `modifiedAt` | string (date-time) | When the localization last changed, in UTC. |

### Request

```bash
curl -X PATCH "https://api.ken.so/v1/campaigns/812/localizations/812" \
  -H "Authorization: Bearer $KENSO_API_KEY" \
  -H "Ken-Version: 2026-11-02" \
  -H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "subjectLine": "string",
  "bodyContent": "string"
}'
```

### Example response

```json
{
  "success": true,
  "data": {
    "id": 812,
    "channel": "email",
    "stepId": 812,
    "stepOrder": 1,
    "variant": "string",
    "language": "fr-FR",
    "subjectLine": "string",
    "bodyContent": "string",
    "status": "string",
    "generating": true,
    "sourceHash": "string",
    "stale": true,
    "packVersion": "string",
    "mirrorLanguage": "string",
    "mirrorSubject": "string",
    "mirrorBody": "string",
    "qaScore": 1,
    "qaReport": {
      "passed": true,
      "errors": [
        {
          "code": "string",
          "message": "string"
        }
      ]
    },
    "editedByHuman": true,
    "approvedByUserId": 812,
    "approvedAt": "2026-09-23T15:02:11Z",
    "lastError": "insufficient_credits",
    "modifiedAt": "2026-09-23T15:02:11Z"
  }
}
```

## Types

Each named type the tables above use, nested ones included.

### CampaignLocalizationQaReport

The checks Kenso ran on a localization's text.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `passed` | boolean | no | True when the text passed every check. |
| `errors` | array of CampaignLocalizationQaError | no | What failed: the rule findings first, then the quality reviewer's findings with the code `judge`. |

### CampaignLocalizationQaError

One finding of the checks on a localization.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | no | The check that failed. A finding from Kenso's quality reviewer has the code `judge`. |
| `message` | string | no | What is wrong, in plain words. |
