updateTenantSetting
Requires permission settings:tenant:update.
Changes one setting by ID. A category that has its own update operation is refused. Needs settings:tenant:update.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation UpdateTenantSetting($input: UpdateTenantSettingInput!) {
updateTenantSetting(input: $input) {
id
createdAt
category
dataType
description
enteredBy
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateTenantSetting($input: UpdateTenantSettingInput!) {\n updateTenantSetting(input: $input) {\n id\n createdAt\n category\n dataType\n description\n enteredBy\n }\n}",
"variables": {
"input": {
"id": "string"
}
}
}
EOF
Variables:
{
"input": {
"id": "string"
}
}
Response:
{
"data": {
"updateTenantSetting": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"category": "ACCOUNTING",
"dataType": "ARRAY",
"description": "string",
"enteredBy": "string"
}
}
}
updateTenantSetting(
input: UpdateTenantSettingInput!
): TenantSetting!
Arguments
updateTenantSetting.input ● UpdateTenantSettingInput! non-null input
The setting's ID and the fields to change.
Type
TenantSetting object
A setting of the organization.