update_locale
To set the date and time format and the first week day options, use the following command:
svc=user/update_locale¶ms={"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. |
wd* | First week day: |
Response
{
"locale":
{
"fd":"<text>", /* date and time format */
"wd":<uint> /* first week day: 1 for Monday, 7 for Sunday */
}
}
Error codes
Error codes | Description |
---|---|
7 | Failed to fetch user with ACL (ADF_ACL_ITEM_VIEW_PROPERTIES), or incorrect parameters provided. |
6 | Failed to update locale. |