Skip to main content

createTenantSetting

Requires permission settings:tenant:create.

Creates a setting in a category the generic settings operations manage. A category that has its own update operation is refused. Needs settings:tenant:create.

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:

mutation CreateTenantSetting($input: CreateTenantSettingInput!) {
createTenantSetting(input: $input) {
id
createdAt
category
dataType
description
enteredBy
}
}

Variables:

{
"input": {
"category": "ACCOUNTING",
"dataType": "ARRAY",
"isActive": true,
"key": "string"
}
}

Response:

{
"data": {
"createTenantSetting": {
"id": "id",
"createdAt": "2025-01-15T00:00:00Z",
"category": "ACCOUNTING",
"dataType": "ARRAY",
"description": "string",
"enteredBy": "string"
}
}
}
createTenantSetting(
input: CreateTenantSettingInput!
): TenantSetting!

Arguments​

createTenantSetting.input ● CreateTenantSettingInput! non-null input​

The setting's category, key, value and data type, with an optional description, validation rule and active flag.

Type​

TenantSetting object​

A setting of the organization.