---
updatedAt: 2025-09-17T22:50:09.000Z
agentTools:
  projectIndex: https://docs.motaword.com/llms.txt
---

# Update string translation

Update the translation of a string from your account strings/translation memory.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "MotaWord API",
    "description": "Use MotaWord API to post and track your translation projects.",
    "version": "1.0",
    "x-cli-name": "motaword",
    "x-cli-description": "Use MotaWord CLI to interact with your MotaWord account in many ways to manage your translation and localization needs. Visit motaword.com/developer for details."
  },
  "security": [
    {
      "mwoAuth": [
        "default"
      ]
    }
  ],
  "x-cli-cmd-groups": {
    "async": {
      "short": "Manage async operations",
      "long": "Manage async operations"
    },
    "token": {
      "short": "Manage token operations",
      "long": "Manage token operations"
    },
    "blog": {
      "short": "Manage blog articles",
      "long": "Manage blog articles"
    },
    "clients": {
      "short": "Manage client account",
      "long": "Manage client account"
    },
    "corporates": {
      "short": "Manage corporate account",
      "long": "Manage corporate account",
      "parent": "clients"
    },
    "documents": {
      "short": "Manage documents",
      "long": "Manage documents"
    },
    "glossaries": {
      "short": "Manage glossaries",
      "long": "Manage glossaries"
    },
    "styleguides": {
      "short": "Manage style guides",
      "long": "Manage style guides"
    },
    "projects": {
      "short": "Manage projects",
      "long": "Manage projects"
    },
    "activities": {
      "short": "Manage activities",
      "long": "Manage activities",
      "parent": "projects"
    },
    "translations": {
      "short": "Manage translations",
      "long": "Manage translations",
      "parent": "projects"
    },
    "project-documents": {
      "short": "Manage project source documents",
      "long": "Manage project source documents",
      "parent": "projects"
    },
    "reports": {
      "short": "Manage reports",
      "long": "Manage reports"
    },
    "search": {
      "short": "Manage search operations",
      "long": "Manage search operations"
    },
    "static": {
      "short": "Manage static endpoints",
      "long": "Manage static endpoints"
    },
    "stats": {
      "short": "Manage stats",
      "long": "Manage stats"
    },
    "strings": {
      "short": "Manage strings",
      "long": "Manage strings"
    },
    "users": {
      "short": "Manage users",
      "long": "Manage users"
    },
    "vendors": {
      "short": "Manage vendors",
      "long": "Manage vendors",
      "parent": "users"
    },
    "webhooks": {
      "short": "Manage webhooks",
      "long": "Manage webhooks"
    },
    "continuous-projects": {
      "short": "Manage your continuous projects",
      "long": "Manage your continuous localization or translation projects"
    }
  },
  "paths": {
    "/strings": {
      "put": {
        "summary": "Update string translation",
        "description": "Update the translation of a string from your account strings/translation memory.",
        "operationId": "updateTranslationMemoryUnit",
        "tags": [
          "Strings"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TranslationMemoryUnit"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Translation updated by adding new translation memory unit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationStatus"
                }
              }
            }
          },
          "400": {
            "description": "Corporate id, source language, target language, source string or target string is not provided",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Source language or target language is not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Something went wrong and translation unit is not updated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.motaword.com"
    },
    {
      "url": "https://sandbox.motaword.com"
    },
    {
      "url": "http://localhost"
    }
  ],
  "components": {
    "securitySchemes": {
      "mwoAuth": {
        "description": "OAuth2 authentication, Client Credentials flow.",
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/token",
            "scopes": {
              "privileged": "privileged",
              "default": "default"
            }
          },
          "password": {
            "tokenUrl": "/token",
            "refreshUrl": "/token",
            "scopes": {
              "privileged": "privileged",
              "default": "default"
            }
          },
          "authorizationCode": {
            "authorizationUrl": "https://www.motaword.com/auth/authorize",
            "tokenUrl": "/token",
            "refreshUrl": "/token",
            "scopes": {
              "privileged": "privileged",
              "default": "default"
            }
          }
        }
      }
    },
    "schemas": {
      "OperationStatus": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/OperationStatusEnum"
          }
        }
      },
      "OperationStatusEnum": {
        "type": "string",
        "default": "success",
        "enum": [
          "success",
          "error"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "http_code": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "help": {
            "type": "string"
          },
          "extra_data": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/AdditionalErrorData"
            },
            "description": "Additional structured data related to the error."
          }
        }
      },
      "TranslationMemoryUnit": {
        "type": "object",
        "properties": {
          "sourceText": {
            "type": "string"
          },
          "targetText": {
            "type": "string"
          },
          "sourceLanguage": {
            "type": "string"
          },
          "targetLanguage": {
            "type": "string"
          }
        }
      },
      "AdditionalErrorData": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string"
          },
          "file_size": {
            "type": "integer"
          },
          "additional_info": {
            "type": "string"
          }
        }
      }
    }
  }
}
```