Is there a way to update User API fields in Nav Bar Apps? | Community
Skip to main content

Is there a way to update User API fields in Nav Bar Apps?

  • July 10, 2022
  • 4 replies
  • 0 views

Gaby11

I'm creating a Nav Bar app, and I wanted to know if there was a way to update a Users field from it (ex. Role, suspended, etc). I see documentation on updating ticket options in ticket sidebar using client.set(). 

I am new to this, and would love some help.

Thank you.

4 replies

Gaby11
  • Author
  • July 10, 2022

@ahmed11 Thank you for this, but in the Nav Bar app I am puling all users from the Users API using client.request(). I am able to pull all the users and list them on the app, however, I can't find a way to update any User fields. I would like to do this using a Users ID if possible.

I want to be able to select a User and update their Role or Suspension status directly from that app.


Gaby11
  • Author
  • July 10, 2022

@ahmed11 Great! Do you have an example of how I would use client.request() to update the user end point?


Gaby11
  • Author
  • July 10, 2022

@ahmed11 amazing, that worked! Thank you so much for your help. I really appreciate you taking the time to help.


Gaby11
  • Author
  • July 10, 2022

@ahmed11 One thing I did notice, the field updates but only after I fully refresh the page. If I try to reload the page using javascript, the updated fields don't reflect. Is there a solution to this?