Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (30 loc) · 1.14 KB

savesettings.md

File metadata and controls

41 lines (30 loc) · 1.14 KB

Auto Translate Save Settings

Save some settings about autotranslate.

URL Requires Auth HTTP Method
/api/v1/autotranslate.saveSetttings yes POST

Payload

Argument Example Required Description
roomId 7aDSXtjMA3KPLxLjt Required The room's id to apply setting.
field autoTranslate Or autoTranslateLanguage Required The setting to apply to user's subscription.
value true Or en Required Boolean if the setting is autoTranslate and a string (the language) if the setting is autoTranslateLanguage.
defaultLanguage en Optional The default language.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: Z3cpiYN6CNK2oXWKv" \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/autotranslate.saveSetttings \
     -d '{ "roomId": "7aDSXtjMA3KPLxLjt", "field": "autoTranslate", "value": true }'

Example Result

{
    "success": true
}

Change Log

Version Description
1.3.0 Added