Skip to main content
PUT
Update macro settings

Choosing languages

translation_languages is the full list and replaces the current one. Read it with Get macro settings first and send every language you want to keep. Send at most 10 lower-case codes such as es, each one of supported_translation_languages, with no repeats; anything else is rejected with a 400. An empty list turns macro translation off.
Choosing a language that was not chosen before translates every macro into it in the background. Languages that were already chosen are not translated again. Removing a language stops using it but keeps its translations, so adding it back is instant. Track progress per macro with Get macro translations. Variables are never translated. suggestions_enabled appears in the response but cannot be changed here. Turn suggested macros on or off for the workspace in Settings → Workspace → Suggested macros.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
translation_languages
string[]
required

The full list of language codes (lower-case, such as es; at most 10, each from supported_translation_languages, no repeats) to translate every org-wide macro into. It replaces the current list, so send every language you want to keep. [] turns macro translation off.

Maximum array length: 10

Response

Default Response

translation_languages
string[]
required

Language codes (lower-case, such as es) every org-wide macro is translated into, in the order they were chosen. Empty means macro translation is off.

max_translation_languages
number
required

The most languages that can be chosen.

supported_translation_languages
string[]
required

The language codes that can be chosen.

suggestions_enabled
boolean
required

Whether suggested macros are on for the workspace. When off, no agent sees them.