Hanzo
OpenapiTranslate

Review records a human decision on one translation-memory entry, and returns…

Review records a human decision on one translation-memory entry, and returns the entry as stored.

PUT /v1/translate/memory

Addresshttps://api.hanzo.ai/v1/translate/memory
MethodPUT
Operationput_translate_memory
AuthAuthorization: Bearer $HANZO_API_KEY

Review records a human decision on one translation-memory entry, and returns the entry as stored. A human write always wins over the stored value, and once it lands at approved or published no machine write can move it again — which is what makes a locale rebuild safe to run against reviewed work.

The org is ALWAYS the validated principal's org, never a request field, so a review can only ever land in the caller's own memory.

Request

7 fields, body application/json (required).

FieldInTypeRequiredDescription
glossarybodyobjectGlossary is the terminology the entry was translated under.
glossary.*bodystring
sourcebodystringSource is the ORIGINAL string this entry translates.
statebodystringState is the entry's new position on the review ladder: suggested, approved or published.
targetbodystringTarget is the target language tag (BCP-47, e.g.
textbodystringText is the reviewed translation to store.
tierbodystringTier is the engine tier the entry belongs to, quality (the default) or bulk.

Response

StatusBodyMeaning
200MemoryEntryok

200 body — 8 fields.

FieldInTypeAlwaysDescription
actorbodystringActor is the validated user id that last wrote this entry by hand.
glossary_versionbodystringGlossary is the glossary VERSION the entry was translated under — the digest version() derives from the terms, so changing a term changes the key and the stale…
sourcebodystringSource is the ORIGINAL string this entry translates.
statebodystringState is the entry's position on the review ladder: machine, suggested, approved or published.
targetbodystringTarget is the target language tag (BCP-47, e.g.
textbodystringText is the stored translation.
tierbodystringTier is the engine tier the entry belongs to, quality or bulk.
updated_atbodyintegerUpdatedAt is the unix second the entry last changed.

Failure carries the platform error shape — see Errors.

Examples

hanzo translate memory replace

Translate API · All Hanzo APIs · Interactive reference

How is this guide?

On this page