update_user_preferences
Update preferences for a user.
Input fields
LanguageCode)
Optional two letter code indicating the user's preferred language.
NotificationDeliveryInput)
Optional set of notification delivery preferences.
ID)
Optional ID of the logo this user last used on a report.
PaperSize)
The paper size this user last used on a report.
ID)
Optional ID of the signature this user last used on a report.
ID!)
User ID.
UnitSystem)
Optional unit system for display of physical quantities.
Return fields
String)
User address line 1.
String)
User address line 2.
String)
User city.
String!)
User country code (ISO 3166-1).
String!)
The email address for the user.
Boolean!)
Has this user's employer opted into the enterprise license agreement.
String!)
The first name of the user.
String)
The last name of the user.
UserLicense!)
The type of license currently assigned to the user.
LogosQueryResult)
A list of logos for this user.
| Argument | Type | Description |
|---|---|---|
pagination |
Pagination!
|
Paginate the results. |
sentera_id |
ID
|
Retrieve the logo with the given Sentera ID. |
Organization!)
The organization this user belongs to.
JSON!)
Please use the organizations query instead to build the organization hierarchy.
A list of organization hierarchies comprised of the user's home organization and any organizations the user is partnered with, returned as a JSON array of hashes. Available keys in each hash are sentera_id (string), name (string) and children (array). This structure is recursive.
String)
The phone number for the user.
UserPreferences!)
The app preferences for this user.
[UserRole!]!)
An array of all of the user's roles.
ID!)
A system-generated key identifying a specific instance of a user.
SignaturesQueryResult)
A list of signatures for this user.
| Argument | Type | Description |
|---|---|---|
pagination |
Pagination!
|
Paginate the results. |
sentera_id |
ID
|
Retrieve the signature with the given Sentera ID. |
String)
User state/province/region code (ISO 3166-2).
UserStatus!)
The current status of the user.
String)
User zip code.
Examples
Update User Preferences
Updates a user's preferences for language_code and unit_system.
Try this example in GraphiQLmutation UpdateUserPreferences {
update_user_preferences(
sentera_id: "2idjv9o_US_bw1kAcmeOrg_CV_prod_9d89c370_190528_170322"
language_code: PT
unit_system: METRIC
) {
sentera_id
preferences {
language_code
unit_system
}
}
}
{
"data": {
"update_user_preferences": {
"preferences": {
"language_code": "PT",
"unit_system": "METRIC"
}
}
}
}