Get Worker Preferences
Describes the API specifications for retrieving all profile worker UI preferences.
Request
URI: https://<SAP Fieldglass envionment URL>/api/vi/worker-preferences/<username>
HTTP Method: GET
Request Parameters
|
Parameter |
Required |
Data Type |
Description |
Parameter Type |
|---|---|---|---|---|
|
username name |
Yes |
String |
The unique name of the user. |
Path |
Request Example
GET https://company.com/api/v1/worker-preferences/sabine_bosch authorization: Bearer WDXlKj3TTOn3rpg9GHnZpbKmvj1= x-ApplicationKey: 5c91f4fdb0c6ee9992ff476f89bf6cf25e589350 content-type: application/json
Response
Response Status and Error Codes
See Common Status and Error Codes for more information.
Response Body
|
Parameter |
Data Type |
Description |
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
locale |
Object |
UI preferences associated with a profile worker's locale.
|
||||||||||||||||||
|
messaging |
Object |
A list of profile worker messaging preferences.
|
Response Example
{
"locale": {
"timeZone": "US/Eastern",
"dateFormat": "YYYY-MM-DD",
"timeFormat": "12 Hour Clock",
"numberFormat": "#,##9.99 (Example: 1,234,567.99)",
"language": "English (United States)"
},
"messaging": {
"emailFormat": "Plain Text",
"emailMessage": "Work Item",
"systemMessage": "Notification"
}
}