Skip to main content

setDefaultTimezone

Requires at least one of the permissions settings:regional:update or settings:tenant:update.

Makes a timezone the organization's default, taking the flag from the current default. Requires permission to update regional or tenant settings.

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 SetDefaultTimezone($id: String!) {
setDefaultTimezone(id: $id) {
id
code
name
createdAt
abbreviation
deletedAt
}
}

Variables:

{
"id": "string"
}

Response:

{
"data": {
"setDefaultTimezone": {
"id": "id",
"code": "string",
"name": "string",
"createdAt": "2025-01-15T00:00:00Z",
"abbreviation": "string",
"deletedAt": "2025-01-15T00:00:00Z"
}
}
}
setDefaultTimezone(
id: String!
): Timezone!

Arguments​

setDefaultTimezone.id ● String! non-null scalar​

The ID of the timezone.

Type​

Timezone object​

A time zone the organization can use.