> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialize Time Zone Data

> Initalizes the TimeZoneData

NsApiSlow threshold: 5000 ms.



## OpenAPI

````yaml /openapi/agent/openapi-v3-TimeZoneAgent.json post /api/v1/Agents/TimeZone/InitializeTimeZoneData
openapi: 3.0.0
info:
  version: v1-Agents
  title: SuperOffice Agent API v1
  description: SuperOffice Agent API - TimeZoneAgent
  contact:
    name: SuperOffice DevNet
    url: https://docs.superoffice.com/en/api/index.html
    email: sdk@superoffice.com
servers:
  - url: http://localhost:56350
  - url: https://localhost:56350
security: []
tags: []
externalDocs:
  description: >-
    The SuperOffice DevNet Community has more documentation, examples, and
    discussion forums.
  url: https://community.superoffice.com/en/developer/
paths:
  /api/v1/Agents/TimeZone/InitializeTimeZoneData:
    post:
      tags:
        - TimeZone_Agent
      summary: Initialize Time Zone Data
      description: |-
        Initalizes the TimeZoneData

        NsApiSlow threshold: 5000 ms.
      operationId: v1TimeZoneAgent_InitializeTimeZoneData
      parameters:
        - name: $select
          in: query
          description: >-
            Optional comma separated list of properties to include in the
            result. Other fields are then nulled out to reduce payload size:
            "Name,department,category". Default = show all fields.
          required: false
          schema:
            type: string
        - name: Accept-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code.
          required: false
          schema:
            type: string
        - name: SO-Language
          in: header
          description: >-
            Convert string references and multi-language values into a specified
            language (iso2) code. Overrides Accept-Language value.
          required: false
          schema:
            type: string
        - name: SO-Culture
          in: header
          description: >-
            Number, date formatting in a specified culture (iso2 language) code.
            Partially overrides SO-Language/Accept-Language value. Ignored if no
            Language set.
          required: false
          schema:
            type: string
        - name: SO-TimeZone
          in: header
          description: >-
            Specify the timezone code that you would like date/time responses
            converted to.
          required: false
          schema:
            type: string
        - name: SO-AppToken
          in: header
          description: >-
            The application token that identifies the partner app. Used when
            calling Online WebAPI from a server.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
            application/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
            text/xml:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
            application/json-patch+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
            application/merge-patch+json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneData'
      security:
        - SuperOffice_Password: []
          SuperId_Authentication: []
components:
  schemas:
    SuperOffice.CRM.TimeZoneData:
      type: object
      properties:
        TZLocationID:
          format: int32
          description: Timezone location ID - primary key.
          type: integer
        Name:
          description: >-
            Name associated with the location: Country name + region name,
            Norway, United States - Alaska
          type: string
        TZLocationCode:
          description: "Code associated with location: UTC, AR-NQ, AU-QLD, PF2A\r\nNot the an ISO country code. Unique."
          type: string
        TZLocationCities:
          description: 'Cities associated with location: Oslo, London, Rio de Janeiro'
          type: string
        IsoNumber:
          format: int32
          description: 'Country ISO code associated with location: 578'
          type: integer
        TimeZoneSTDRules:
          description: Dictionary of standard rules
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneRule'
        TimeZoneDSTRules:
          description: Dictionary of Daylight saving time rules
          type: object
          additionalProperties:
            $ref: '#/components/schemas/SuperOffice.CRM.TimeZoneRule'
    SuperOffice.CRM.TimeZoneRule:
      type: object
      properties:
        StartDay:
          format: int32
          type: integer
        StartMonth:
          format: int32
          type: integer
        EndDay:
          format: int32
          type: integer
        EndMonth:
          format: int32
          type: integer
        TZOffset:
          format: int32
          type: integer
        StartRulePattern:
          type: string
        EndRulePattern:
          type: string

````

## Related topics

- [SuperOffice.WebApi.Data.TimeZone InitializeTimeZoneDataRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.TimeZone_InitializeTimeZoneDataRequest.md)
- [NSTimeZoneAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSTimeZoneAgent.md)
- [SuperOffice.WebApi.Agents.TimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TimeZoneAgent.md)
- [SuperOffice.WebApi.Agents.ITimeZoneAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITimeZoneAgent.md)
- [Update Time Zone Data](/en/api/reference/restful/agent/timezone_agent/update-time-zone-data.md)
- [NSTimeZoneData](/en/automation/crmscript/reference/CRMScript.NetServer.NSTimeZoneData.md)
