Zabbix Documentation 1.8

3.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.22.43.23.4

User Tools

Site Tools


Sidebar

api:user:updateprofile

updateProfile()

Available since version: 1.8
The method is used to control most user attributes. By this method user may change only it's own settings.

Parameters

ParameterTypeOptionalDescriptionDetails
user attributeany Yes New value for a user attribute. password, url, autologin, autologut, locale, theme, refresh period, rows per page

Returns

ParameterDescription
resultOperation successful. Result will contain array of updated User Object.
errorIn case of any errors

Example

Change rows per page shown by frontend to 50:

  {
   "jsonrpc":"2.0",
   "method":"user.updateProfile",
   "params":{
      "rows_per_page": "50"
   },
   "auth":"700ca65537074ec963db7efabda78259",
   "id":2
  }

Retrieved updated user IDs:

{
"jsonrpc":"2.0",
"result": [{
	"userid":"100100000000001",
	"alias":"Admin",
	"name":"admin",
	"surname":"admin",
	"passwd":"7815696ecbf1c96e6894b779456d330e",
	"url":"",
	"autologin":"1",
	"autologout":"0",
	"lang":"en_gb",
	"refresh":"2000",
	"type":"3",
	"theme":"css_od.css",
	"attempt_failed":"0",
	"attempt_ip":"127.0.0.1",
	"attempt_clock":"1281014721",
	"rows_per_page":"100"
}],
"id":2
}