update_locale

To set the date and time format and the first week day options, use the following command:

Copied!
svc=user/update_locale&params={"userId":<long>,
                               "locale":
                                         {
                                             "fd":"<text>",
                                             "wd":<ubyte>
                                         }
}

Parameters

The required parameters are marked with an asterisk (*).

Parameter

Description

userId*

User ID.

fd*

Date and time format.
See here.

wd*

First week day:
1 for Monday;
7 for Sunday.

Response

Copied!
{
   "locale": 
             {
                "fd":"<text>",   /* date and time format */
                "wd":<uint>    /* first week day: 1 for Monday, 7 for Sunday */
             }
}

Error codes

Error codesDescription
7Failed to fetch user with ACL (ADF_ACL_ITEM_VIEW_PROPERTIES), or incorrect parameters provided.
6Failed to update locale.
Download PDF file
Download Word document

See also