POST
/
settings
curl --request POST \
  --url https://api.togai.com/settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "UserSetting",
  "value": "INR",
  "entityType": "ORGANIZATION",
  "entityId": "XlK5h64gND",
  "namespace": "USER",
  "name": "Settings Name",
  "dataType": "STRING"
}'
{
  "id": "UserSetting",
  "value": "INR",
  "entityType": "ORGANIZATION",
  "entityId": "XlK5h64gND",
  "namespace": "USER",
  "name": "Settings Name",
  "dataType": "STRING"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Payload to insert setting

Represents a setting

Response

201
application/json

Response for insert and update settings request

Represents a setting