Settings
Update a setting
Update a setting
PATCH
/
settings
/
{setting_id_str}
curl --request PATCH \
--url https://api.togai.com/settings/{setting_id_str} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"value": "{\"USD\":\"1\"}",
"name": "Base_Currency",
"dataType": "JSON"
}'
{
"id": "UserSetting",
"value": "INR",
"entityType": "ORGANIZATION",
"entityId": "XlK5h64gND",
"namespace": "USER",
"name": "Settings Name",
"dataType": "STRING"
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
setting_id_str
string
requiredBody
application/json
name
string
value
string
dataType
enum<string>
Available options:
STRING
, NUMERIC
, JSON
, JSON_LOGIC
Response
201 - application/json
id
string
requiredvalue
string
requiredentityType
string
requiredentityId
string
requirednamespace
string
requiredname
string
requireddataType
enum<string>
requiredAvailable options:
STRING
, NUMERIC
, JSON
, JSON_LOGIC
curl --request PATCH \
--url https://api.togai.com/settings/{setting_id_str} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"value": "{\"USD\":\"1\"}",
"name": "Base_Currency",
"dataType": "JSON"
}'
{
"id": "UserSetting",
"value": "INR",
"entityType": "ORGANIZATION",
"entityId": "XlK5h64gND",
"namespace": "USER",
"name": "Settings Name",
"dataType": "STRING"
}