TimeZones: GetTimeZones

Gets a list of time zones that you can assign to an office.

Note: You do not specify an accountId with this method.

Permissions

Anyone with a valid access token can call this method.

Request

HTTP request

GET /restapi/v2/time_zones

Parameters

Parameter NameValueDescription

Responses

CodeDescriptionReference
200

Request was successful.

GlobalTimeZones
400

Bad request. See ErrorCode and Message for details

ApiError
401

Not authorized to make this request.

ApiError

SDK Method

GlobalResources::GetTimeZones

Definitions

ApiError

This object describes errors that occur. It is valid only for responses and ignored in requests.

errorCodestring

The code associated with the error condition.

messagestring

A brief message describing the error condition.

GlobalTimeZones

Contains a list of time zones.

timeZones[TimeZone]

A list of time zones.

TimeZone

Contains information about a time zone.

timeZoneIdstring

The id of the time zone.

Example: brisbane

namestring

The name of the time zone.

Example: Eastern Australia (Brisbane)

}} />