Skip to main content

UpdateUserDto

Struct UpdateUserDto 

Source
pub struct UpdateUserDto {
Show 15 fields pub first_name: Option<String>, pub last_name: Option<String>, pub email: Option<String>, pub password: Option<String>, pub phone: Option<String>, pub type_: Option<String>, pub role: Option<String>, pub company_id: Option<String>, pub location_ids: Vec<String>, pub permissions: Option<PermissionsDto>, pub scopes: Vec<String>, pub scopes_assigned_to_only: Vec<String>, pub profile_photo: Option<String>, pub twilio_phone: Option<Value>, pub platform_language: Option<String>,
}
Available on crate feature users only.
Expand description

UpdateUserDto from the GoHighLevel OpenAPI spec.

Fields§

§first_name: Option<String>

First name of the user

§last_name: Option<String>

Last name of the user

§email: Option<String>

Email update is no longer supported due to security reasons.

§password: Option<String>

New password for the user account. All passwords will be required to meet the following criteria: - Minimum 12 characters - At least one uppercase letter (A–Z) - At least one lowercase letter (a–z) - At least one number (0–9) - At least one special character (e.g., !, @, #, $)

§phone: Option<String>

Phone number of the user in E.164 format

§type_: Option<String>

User account type (account for sub-account users, agency for agency-level users)

§role: Option<String>

User role within the account (admin or user)

§company_id: Option<String>

Company/Agency Id. Required for Agency Level access

§location_ids: Vec<String>

List of sub-account location IDs the user should have access to

§permissions: Option<PermissionsDto>

User permissions controlling access to various features

§scopes: Vec<String>

Scopes allowed for users. Only scopes that have been passed will be enabled. If passed empty all the scopes will be get disabled Allowed values: campaigns.readonly, campaigns.write, calendars.readonly, calendars/events.write, calendars/groups.write, calendars.write, contacts.write, contacts/bulkActions.write, workflows.readonly, workflows.write, triggers.write, funnels.write.

§scopes_assigned_to_only: Vec<String>

Assigned Scopes allowed for users. Only scopes that have been passed will be enabled. If passed empty all the assigned scopes will be get disabled Allowed values: campaigns.readonly, campaigns.write, calendars.readonly, calendars/events.write, calendars/groups.write, calendars.write, contacts.write, contacts/bulkActions.write, workflows.readonly, workflows.write, triggers.write, funnels.write.

§profile_photo: Option<String>

URL of the user profile photo

§twilio_phone: Option<Value>

Per-location inbound Twilio number in E.164 format, keyed by location id (Call and Voicemail Inbound Number for direct Twilio, not LC Phone). Replacement semantics: if you send twilioPhone in the request body, the stored map is replaced entirely with this object (not merged). Any location id omitted from the object is removed from the saved map. Omit the twilioPhone property entirely to leave existing numbers unchanged. Send an empty object {} to clear all per-location numbers. To clear a single location only, set that location id to an empty string “”.

§platform_language: Option<String>

Platform language preference for the user Allowed values: en_US, es, fr_CA, fr_FR, nl, de, pt_PT, pt_BR, it, sv, da, fi.

Trait Implementations§

Source§

impl Clone for UpdateUserDto

Source§

fn clone(&self) -> UpdateUserDto

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UpdateUserDto

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UpdateUserDto

Source§

fn default() -> UpdateUserDto

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for UpdateUserDto

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for UpdateUserDto

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.