updateTenantLocalization
Requires permission settings:tenant:update.
Update the organization's fiscal year start month (reporting calendar only)
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 UpdateTenantLocalization($input: UpdateTenantLocalizationInput!) {
updateTenantLocalization(input: $input) {
id
countryCode
baseCurrencyId
dateFormat
fiscalYearStart
fiscalYearStartMonth
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateTenantLocalization($input: UpdateTenantLocalizationInput!) {\n updateTenantLocalization(input: $input) {\n id\n countryCode\n baseCurrencyId\n dateFormat\n fiscalYearStart\n fiscalYearStartMonth\n }\n}",
"variables": {
"input": {
"fiscalYearStart": 0
}
}
}
EOF
Variables:
{
"input": {
"fiscalYearStart": 0
}
}
Response:
{
"data": {
"updateTenantLocalization": {
"id": "string",
"countryCode": "string",
"baseCurrencyId": "string",
"dateFormat": "string",
"fiscalYearStart": "string",
"fiscalYearStartMonth": 0
}
}
}
updateTenantLocalization(
input: UpdateTenantLocalizationInput!
): OrganizationExtensionInfo!
Arguments
updateTenantLocalization.input ● UpdateTenantLocalizationInput! non-null input
The fields of the tenant localization to change.
Type
OrganizationExtensionInfo object
The organization's localization settings.