Replace a glossary term
Replace a term.
Replace a term. This is a full replace: an optional field you omit is reset to its default. Refused with 422 glossary-term-exists when the new source collides with another term.
deployTokenAuthorizationBearer <token>A project deploy token, minted in the console under Settings, Developer, API tokens. Send the whole value, including the numeric prefix before the |. A token carries a set of abilities (push, pull, manage, read, write) and each operation requires one of them. Tokens do not inherit from each other: a manage token cannot read the glossary unless it also has read.
termId*integerThe glossary term id.
application/json- body
A whole term. On update, an optional field you omit is reset to its default, so send every field you want to keep. A do_not_translate or forbidden term carries no translations; any you send are dropped.
source_term*stringlength <= 255part_of_speech?|length <= 30notes?|length <= 2000case_sensitive?booleanfalsedo_not_translate?booleanfalseforbidden?booleanfalsetranslations?Translations by locale. Empty values are ignored.
The term.
application/json- response
id?integersource_term?stringsource_normalized?stringThe source term as it is matched; lowercased unless case_sensitive.
part_of_speech?string|nullnotes?string|nullcase_sensitive?booleando_not_translate?booleanThe term stays in the source language in every translation.
forbidden?booleanThe term must not appear in translations.
status?stringactive terms apply to translation. pending terms are candidates proposed by glossary extraction. rejected candidates are kept so they are not proposed again.
"active""pending""rejected"confidence?|Set on candidates proposed by extraction; null on terms written by hand.
translations?Approved translations of the term, by locale.
created_by?|What created the term; api for a term created through this API.
created_at?|date-timeupdated_at?|date-timecurl -X PUT 'https://api.transglot.ai/v1/glossary/0' \ -H 'Content-Type: application/json' \ -d '{ "source_term": "string"}'{ "id": 0, "source_term": "string", "source_normalized": "string", "part_of_speech": "string", "notes": "string", "case_sensitive": true, "do_not_translate": true, "forbidden": true, "status": "active", "confidence": 0, "translations": { "property1": "string", "property2": "string" }, "created_by": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}