Set Timezone/Language

    Changes the logged-in user's own timezone and language settings.
    Changes made to the timezone settings are applied immediately, while those to the language settings are applied the next time the user logs in.

    API Type

    Service API

    Request

    Request URL

    • Live environment: https://apis.worksmobile.com/r/{API ID}/admin/v2/globalization/config
    • Testing environment: https://sandbox-apis.worksmobile.com/r/{API ID}/admin/v2/globalization/config

    HTTP Method

    PUT (Content-Type: application/json; charset=UTF-8)

    Request Body

    Parameter Type Required Description
    locale String Y Language code. URL-encoded with UTF-8.
    ● ko_KR
    ● ja_JP
    ● zh_CN
    ● en_US
    ● zh_TW
    timeZone String Y Timezone ID (=GMT). Refer to Timezone Codes in Appendix.
    ● URL-encoded with UTF-8.

    Request Example

    {
        "locale" : "ko_KR",
        "timeZone" : "Asia/Seoul"
    }
    

    Response

    Status 200

    Error Code

    It returns an error code and message on failure.

    Property Type Description
    code String Error code
    message String Error message
    domain String Service module (gw, admin...)
    HTTP status code Error code Description
    400 BAD_REQUEST Invalid request
    401 UNAUTHORIZED Unauthorized request
    404 NOT_FOUND Resource not found
    500 INTERNAL_SERVER_ERROR Internal server error
    Example)
    {
        "code": "BAD_REQUEST",
        "domain": "admin",
        "message": "invalid parameter, Invalid Locale"
    }